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 (char *startup_data, size_t startup_data_len) pg_attribute_noreturn() |
void | PgArchWakeup (void) |
void | PgArchForceDirScan (void) |
#define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial" |
bool PgArchCanRestart | ( | void | ) |
Definition at line 195 of file pgarch.c.
References PGARCH_RESTART_INTERVAL.
Referenced by LaunchMissingBackgroundProcesses().
void PgArchForceDirScan | ( | void | ) |
Definition at line 800 of file pgarch.c.
References PgArchData::force_dir_scan, pg_atomic_write_membarrier_u32(), and PgArch.
Referenced by XLogArchiveNotify().
void PgArchiverMain | ( | char * | startup_data, |
size_t | startup_data_len | ||
) |
Definition at line 215 of file pgarch.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, arch_files, arch_files_state::arch_files_size, arch_files_state::arch_heap, archive_context, Assert, AuxiliaryProcessMainCommon(), B_ARCHIVER, binaryheap_allocate(), LoadArchiveLibrary(), MyBackendType, MyProcNumber, NUM_FILES_PER_DIRECTORY_SCAN, on_shmem_exit(), palloc(), PgArch, pgarch_die(), pgarch_MainLoop(), pgarch_waken_stop(), PgArchData::pgprocno, pqsignal(), proc_exit(), procsignal_sigusr1_handler(), ready_file_comparator(), SIG_DFL, SIG_IGN, SIGALRM, SIGCHLD, SIGHUP, SignalHandlerForConfigReload(), SignalHandlerForShutdownRequest(), SIGPIPE, SIGUSR1, SIGUSR2, TopMemoryContext, UnBlockSig, and XLogArchivingActive.
void PgArchShmemInit | ( | void | ) |
Definition at line 166 of file pgarch.c.
References PgArchData::force_dir_scan, INVALID_PROC_NUMBER, MemSet, pg_atomic_init_u32(), PgArch, PgArchShmemSize(), PgArchData::pgprocno, and ShmemInitStruct().
Referenced by CreateOrAttachShmemStructs().
Size PgArchShmemSize | ( | void | ) |
Definition at line 155 of file pgarch.c.
References add_size(), and size.
Referenced by CalculateShmemSize(), and PgArchShmemInit().
void PgArchWakeup | ( | void | ) |
Definition at line 278 of file pgarch.c.
References PROC_HDR::allProcs, INVALID_PROC_NUMBER, PgArch, PgArchData::pgprocno, ProcGlobal, PGPROC::procLatch, and SetLatch().
Referenced by XLogArchiveNotify().