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