|
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) |
| char * | GetDbnameFromConnectionOptions (const char *connstr) |
| #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 28 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().
| char * GetDbnameFromConnectionOptions | ( | const char * | connstr | ) |
Definition at line 204 of file recovery_gen.c.
References connstr, dbname, FindDbnameInConnOpts(), pg_fatal, PQconndefaults(), PQconninfoFree(), and PQconninfoParse().
Referenced by BaseBackup(), and main().
| void WriteRecoveryConfig | ( | PGconn * | pgconn, |
| const char * | target_dir, | ||
| PQExpBuffer | contents | ||
| ) |
Definition at line 125 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().