PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
recovery_gen.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * Generator for recovery configuration
4 *
5 * Portions Copyright (c) 2011-2025, 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
24 const char *replication_slot,
25 char *dbname);
26extern void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir,
27 PQExpBuffer contents);
28extern char *GetDbnameFromConnectionOptions(const char *connstr);
29
30#endif /* RECOVERY_GEN_H */
static char * replication_slot
static char * connstr
Definition: pg_dumpall.c:88
void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir, PQExpBuffer contents)
Definition: recovery_gen.c:125
PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn, const char *replication_slot, char *dbname)
Definition: recovery_gen.c:28
char * GetDbnameFromConnectionOptions(const char *connstr)
Definition: recovery_gen.c:204
char * dbname
Definition: streamutil.c:49