]> granicus.if.org Git - postgresql/commit
Add pg_promote function
authorMichael Paquier <michael@paquier.xyz>
Thu, 25 Oct 2018 00:46:00 +0000 (09:46 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 25 Oct 2018 00:46:00 +0000 (09:46 +0900)
commit10074651e3355e2405015f6253602be8344bc829
tree3b53798231baca437d9c27f934e010c9d4bcf74a
parent0a8590b2a09e7a9e10612bc38d5e872b0c234eca
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
13 files changed:
doc/src/sgml/func.sgml
doc/src/sgml/high-availability.sgml
doc/src/sgml/monitoring.sgml
doc/src/sgml/recovery-config.sgml
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/catalog/system_views.sql
src/backend/postmaster/pgstat.c
src/include/access/xlog.h
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/pgstat.h
src/test/recovery/t/004_timeline_switch.pl