2019-09-25 19:35:24 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Generator for recovery configuration
|
|
|
|
*
|
2022-01-08 01:04:57 +01:00
|
|
|
* Portions Copyright (c) 2011-2022, PostgreSQL Global Development Group
|
2019-09-25 19:35:24 +02:00
|
|
|
*
|
|
|
|
* 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,
|
2022-09-20 22:09:30 +02:00
|
|
|
char *replication_slot);
|
2019-09-25 19:35:24 +02:00
|
|
|
extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
|
|
|
|
PQExpBuffer contents);
|
|
|
|
|
|
|
|
#endif /* RECOVERY_GEN_H */
|