PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | MINIMUM_VERSION_FOR_RECOVERY_GUC 120000 |
Functions | |
PQExpBuffer | GenerateRecoveryConfig (PGconn *pgconn, const char *replication_slot, char *dbname) |
void | WriteRecoveryConfig (PGconn *pgconn, const char *target_dir, PQExpBuffer contents) |
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000 |
Definition at line 21 of file recovery_gen.h.
PQExpBuffer GenerateRecoveryConfig | ( | PGconn * | pgconn, |
const char * | replication_slot, | ||
char * | dbname | ||
) |
Definition at line 27 of file recovery_gen.c.
References appendConnStrVal(), appendPQExpBuffer(), appendPQExpBufferChar(), appendPQExpBufferStr(), Assert, createPQExpBuffer(), PQExpBufferData::data, dbname, escape_quotes(), free, initPQExpBuffer(), _PQconninfoOption::keyword, PQExpBufferData::len, MINIMUM_VERSION_FOR_RECOVERY_GUC, pg_fatal, PQconninfo(), PQconninfoFree(), PQExpBufferBroken, PQExpBufferDataBroken, PQserverVersion(), replication_slot, and termPQExpBuffer().
Referenced by BaseBackup(), main(), and setup_recovery().
void WriteRecoveryConfig | ( | PGconn * | pgconn, |
const char * | target_dir, | ||
PQExpBuffer | contents | ||
) |
Definition at line 124 of file recovery_gen.c.
References Assert, PQExpBufferData::data, filename, PQExpBufferData::len, MAXPGPATH, MINIMUM_VERSION_FOR_RECOVERY_GUC, pg_fatal, PQserverVersion(), and snprintf.
Referenced by main(), and setup_recovery().