PostgreSQL Source Code
git master
recovery_gen.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* Generator for recovery configuration
4
*
5
* Portions Copyright (c) 2011-2023, 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
14
#include "
libpq-fe.h
"
15
#include "
pqexpbuffer.h
"
16
17
/*
18
* recovery configuration is part of postgresql.conf in version 12 and up, and
19
* in recovery.conf before that.
20
*/
21
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
22
23
extern
PQExpBuffer
GenerateRecoveryConfig
(
PGconn
*pgconn,
24
char
*
replication_slot
);
25
extern
void
WriteRecoveryConfig
(
PGconn
*pgconn,
char
*target_dir,
26
PQExpBuffer
contents);
27
28
#endif
/* RECOVERY_GEN_H */
libpq-fe.h
replication_slot
static char * replication_slot
Definition:
pg_basebackup.c:142
pqexpbuffer.h
WriteRecoveryConfig
void WriteRecoveryConfig(PGconn *pgconn, char *target_dir, PQExpBuffer contents)
Definition:
recovery_gen.c:105
GenerateRecoveryConfig
PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
Definition:
recovery_gen.c:23
PQExpBufferData
Definition:
pqexpbuffer.h:45
pg_conn
Definition:
libpq-int.h:359
src
include
fe_utils
recovery_gen.h
Generated on Mon Oct 2 2023 06:13:23 for PostgreSQL Source Code by
1.9.1