blob: 7ac8953943944877d663de7c7a8eea94803a8019 (
plain)
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
|
/*-------------------------------------------------------------------------
*
* Generator for recovery configuration
*
* Portions Copyright (c) 2011-2021, 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 *pg_replication_slot);
extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
PQExpBuffer contents);
#endif /* RECOVERY_GEN_H */
|