2
0

recovery_gen.h 813 B

12345678910111213141516171819202122232425262728
  1. /*-------------------------------------------------------------------------
  2. *
  3. * Generator for recovery configuration
  4. *
  5. * Portions Copyright (c) 2011-2022, PostgreSQL Global Development Group
  6. *
  7. * src/include/fe_utils/recovery_gen.h
  8. *
  9. *-------------------------------------------------------------------------
  10. */
  11. #ifndef RECOVERY_GEN_H
  12. #define RECOVERY_GEN_H
  13. #include "libpq-fe.h"
  14. #include "pqexpbuffer.h"
  15. /*
  16. * recovery configuration is part of postgresql.conf in version 12 and up, and
  17. * in recovery.conf before that.
  18. */
  19. #define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
  20. extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
  21. char *pg_replication_slot);
  22. extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
  23. PQExpBuffer contents);
  24. #endif /* RECOVERY_GEN_H */