codekingpro/portable-devtools
115k
1/*-------------------------------------------------------------------------2 *3 * pgarch.h4 * Exports from postmaster/pgarch.c.5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * src/include/postmaster/pgarch.h10 *11 *-------------------------------------------------------------------------12 */13#ifndef _PGARCH_H14#define _PGARCH_H15 16/* ----------17 * Archiver control info.18 *19 * We expect that archivable files within pg_wal will have names between20 * MIN_XFN_CHARS and MAX_XFN_CHARS in length, consisting only of characters21 * appearing in VALID_XFN_CHARS. The status files in archive_status have22 * corresponding names with ".ready" or ".done" appended.23 * ----------24 */25#define MIN_XFN_CHARS 1626#define MAX_XFN_CHARS 4027#define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial"28 29extern Size PgArchShmemSize(void);30extern void PgArchShmemInit(void);31extern bool PgArchCanRestart(void);32extern void PgArchiverMain(void) pg_attribute_noreturn();33extern void PgArchWakeup(void);34extern void PgArchForceDirScan(void);35 36#endif /* _PGARCH_H */37 