|
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) |
| pg_noreturn void | PgArchiverMain (const void *startup_data, size_t startup_data_len) |
| void | PgArchWakeup (void) |
| void | PgArchForceDirScan (void) |
| #define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial" |
| bool PgArchCanRestart | ( | void | ) |
Definition at line 196 of file pgarch.c.
References PGARCH_RESTART_INTERVAL.
Referenced by LaunchMissingBackgroundProcesses().
| void PgArchForceDirScan | ( | void | ) |
Definition at line 806 of file pgarch.c.
References PgArchData::force_dir_scan, pg_atomic_write_membarrier_u32(), and PgArch.
Referenced by XLogArchiveNotify().
| pg_noreturn void PgArchiverMain | ( | const void * | startup_data, |
| size_t | startup_data_len | ||
| ) |
Definition at line 219 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(), SIGALRM, SIGCHLD, SIGHUP, SignalHandlerForConfigReload(), SignalHandlerForShutdownRequest(), SIGPIPE, SIGUSR1, SIGUSR2, TopMemoryContext, UnBlockSig, and XLogArchivingActive.
| void PgArchShmemInit | ( | void | ) |
Definition at line 167 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 156 of file pgarch.c.
References add_size().
Referenced by CalculateShmemSize(), and PgArchShmemInit().
| void PgArchWakeup | ( | void | ) |
Definition at line 282 of file pgarch.c.
References PROC_HDR::allProcs, INVALID_PROC_NUMBER, PgArch, PgArchData::pgprocno, ProcGlobal, PGPROC::procLatch, and SetLatch().
Referenced by XLogArchiveNotify().