diff options
| author | Michael Paquier | 2018-10-25 00:46:00 +0000 |
|---|---|---|
| committer | Michael Paquier | 2018-10-25 00:46:00 +0000 |
| commit | 10074651e3355e2405015f6253602be8344bc829 (patch) | |
| tree | 3b53798231baca437d9c27f934e010c9d4bcf74a /src/include/pgstat.h | |
| parent | 0a8590b2a09e7a9e10612bc38d5e872b0c234eca (diff) | |
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/include/pgstat.h')
| -rw-r--r-- | src/include/pgstat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index fd1d52a0c51..f1c10d16b8b 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -829,6 +829,7 @@ typedef enum WAIT_EVENT_PARALLEL_CREATE_INDEX_SCAN, WAIT_EVENT_PARALLEL_FINISH, WAIT_EVENT_PROCARRAY_GROUP_UPDATE, + WAIT_EVENT_PROMOTE, WAIT_EVENT_REPLICATION_ORIGIN_DROP, WAIT_EVENT_REPLICATION_SLOT_DROP, WAIT_EVENT_SAFE_SNAPSHOT, |
