1 /*-------------------------------------------------------------------------
4 * Exports from postmaster/pgarch.c.
6 * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/postmaster/pgarch.h
11 *-------------------------------------------------------------------------
17 * Archiver control info.
19 * We expect that archivable files within pg_xlog will have names between
20 * MIN_XFN_CHARS and MAX_XFN_CHARS in length, consisting only of characters
21 * appearing in VALID_XFN_CHARS. The status files in archive_status have
22 * corresponding names with ".ready" or ".done" appended.
25 #define MIN_XFN_CHARS 16
26 #define MAX_XFN_CHARS 40
27 #define VALID_XFN_CHARS "0123456789ABCDEF.history.backup"
30 * Functions called from postmaster
33 extern int pgarch_start(void);
36 extern void PgArchiverMain(int argc, char *argv[]) pg_attribute_noreturn;
39 #endif /* _PGARCH_H */