pgarch.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pgarch.h
  4. * Exports from postmaster/pgarch.c.
  5. *
  6. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/postmaster/pgarch.h
  10. *
  11. *-------------------------------------------------------------------------
  12. */
  13. #ifndef _PGARCH_H
  14. #define _PGARCH_H
  15. /* ----------
  16. * Archiver control info.
  17. *
  18. * We expect that archivable files within pg_xlog will have names between
  19. * MIN_XFN_CHARS and MAX_XFN_CHARS in length, consisting only of characters
  20. * appearing in VALID_XFN_CHARS. The status files in archive_status have
  21. * corresponding names with ".ready" or ".done" appended.
  22. * ----------
  23. */
  24. #define MIN_XFN_CHARS 16
  25. #define MAX_XFN_CHARS 40
  26. #define VALID_XFN_CHARS "0123456789ABCDEF.history.backup.partial"
  27. /* ----------
  28. * Functions called from postmaster
  29. * ----------
  30. */
  31. extern int pgarch_start(void);
  32. #ifdef EXEC_BACKEND
  33. extern void PgArchiverMain(int argc, char *argv[]) pg_attribute_noreturn();
  34. #endif
  35. #endif /* _PGARCH_H */