PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | MIN_XFN_CHARS 16 |
#define | MAX_XFN_CHARS 40 |
#define | VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial" |
Functions | |
Size | PgArchShmemSize (void) |
void | PgArchShmemInit (void) |
bool | PgArchCanRestart (void) |
void | PgArchiverMain (void) pg_attribute_noreturn() |
void | PgArchWakeup (void) |
void | PgArchForceDirScan (void) |
#define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial" |
bool PgArchCanRestart | ( | void | ) |
void PgArchForceDirScan | ( | void | ) |
Definition at line 710 of file pgarch.c.
References PgArchData::arch_lck, PgArchData::force_dir_scan, PgArch, SpinLockAcquire, and SpinLockRelease.
Referenced by XLogArchiveNotify().
void PgArchiverMain | ( | void | ) |
Definition at line 212 of file pgarch.c.
References arch_files, arch_files_state::arch_files_size, arch_files_state::arch_heap, Assert(), binaryheap_allocate(), LoadArchiveLibrary(), MyProc, NUM_FILES_PER_DIRECTORY_SCAN, on_shmem_exit(), palloc(), PgArch, pgarch_die(), pgarch_MainLoop(), pgarch_waken_stop(), PgArchData::pgprocno, PGPROC::pgprocno, pqsignal(), proc_exit(), procsignal_sigusr1_handler(), ready_file_comparator(), SIG_DFL, SIG_IGN, SIGALRM, SIGCHLD, SIGHUP, SignalHandlerForConfigReload(), SignalHandlerForShutdownRequest(), SIGPIPE, SIGUSR1, SIGUSR2, UnBlockSig, and XLogArchivingActive.
Referenced by AuxiliaryProcessMain().
void PgArchShmemInit | ( | void | ) |
Definition at line 163 of file pgarch.c.
References PgArchData::arch_lck, INVALID_PGPROCNO, MemSet, PgArch, PgArchShmemSize(), PgArchData::pgprocno, ShmemInitStruct(), and SpinLockInit.
Referenced by CreateSharedMemoryAndSemaphores().
Size PgArchShmemSize | ( | void | ) |
Definition at line 152 of file pgarch.c.
References add_size().
Referenced by CalculateShmemSize(), and PgArchShmemInit().
void PgArchWakeup | ( | void | ) |
Definition at line 265 of file pgarch.c.
References PROC_HDR::allProcs, INVALID_PGPROCNO, PgArch, PgArchData::pgprocno, ProcGlobal, PGPROC::procLatch, and SetLatch().
Referenced by XLogArchiveNotify().