pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_promote function
Date: Thu, 25 Oct 2018 00:46:43 +0000
Message-ID: <E1gFTnP-0006nb-ES@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/10074651e3355e2405015f6253602be8344bc829

Modified Files
--------------
doc/src/sgml/func.sgml                     | 19 ++++++++
doc/src/sgml/high-availability.sgml        | 19 ++++----
doc/src/sgml/monitoring.sgml               |  6 ++-
doc/src/sgml/recovery-config.sgml          |  3 +-
src/backend/access/transam/xlog.c          |  6 ---
src/backend/access/transam/xlogfuncs.c     | 77 ++++++++++++++++++++++++++++++
src/backend/catalog/system_views.sql       |  6 +++
src/backend/postmaster/pgstat.c            |  3 ++
src/include/access/xlog.h                  |  6 +++
src/include/catalog/catversion.h           |  2 +-
src/include/catalog/pg_proc.dat            |  4 ++
src/include/pgstat.h                       |  1 +
src/test/recovery/t/004_timeline_switch.pl | 11 +++--
13 files changed, 143 insertions(+), 20 deletions(-)



Message-ID: <E1gFTnP-0006nb-ES@gemulon.postgresql.org>
Permalink:  ../E1gFTnP-0006nb-ES@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gFTnP-0006nb-ES@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Add pg_promote function
  In-Reply-To: <E1gFTnP-0006nb-ES@gemulon.postgresql.org>
  References: <E1gFTnP-0006nb-ES@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox