diff options
author | Michael Paquier <michael@paquier.xyz> | 2018-10-25 09:46:00 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2018-10-25 09:46:00 +0900 |
commit | 10074651e3355e2405015f6253602be8344bc829 (patch) | |
tree | 3b53798231baca437d9c27f934e010c9d4bcf74a /src/backend/access/transam/xlog.c | |
parent | 0a8590b2a09e7a9e10612bc38d5e872b0c234eca (diff) | |
download | postgresql-10074651e3355e2405015f6253602be8344bc829.tar.gz postgresql-10074651e3355e2405015f6253602be8344bc829.zip |
Add pg_promote function
This function is able to promote a standby with this new SQL-callable
function. Execution access can be granted to non-superusers so that
failover tools can observe the principle of least privilege.
Catalog version is bumped.
Author: Laurenz Albe
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/6e7c79b3ec916cf49742fb8849ed17cd87aed620.camel@cybertec.at
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 7375a78ffcf..62fc418893c 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -78,12 +78,6 @@ extern uint32 bootstrap_data_checksum_version; -/* File path names (all relative to $PGDATA) */ -#define RECOVERY_COMMAND_FILE "recovery.conf" -#define RECOVERY_COMMAND_DONE "recovery.done" -#define PROMOTE_SIGNAL_FILE "promote" -#define FALLBACK_PROMOTE_SIGNAL_FILE "fallback_promote" - /* User-settable parameters */ int max_wal_size_mb = 1024; /* 1 GB */ |