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 routine able to update the control file to src/common/
Date: Tue, 12 Mar 2019 01:06:04 +0000
Message-ID: <E1h3Vro-0003eS-9y@gemulon.postgresql.org> (raw)

Add routine able to update the control file to src/common/

This adds a new routine to src/common/ which is compatible with both the
frontend and backend code, able to update the control file's contents.
This is now getting used only by pg_rewind, but some upcoming patches
which add more control on checksums for offline instances will make use
of it.  This could also get used more by the backend as xlog.c has its
own flavor of the same logic with some wait events and an additional
flush phase before closing the opened file descriptor, but this is let
as separate work.

Author: Michael Banck, Michael Paquier
Reviewed-by: Fabien Coelho, Sergei Kornilov
Discussion: https://postgr.es/m/20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ce6afc6823fbe2d83a5a77061b05864612b6bab2

Modified Files
--------------
src/bin/pg_rewind/pg_rewind.c          | 43 +---------------
src/common/controldata_utils.c         | 94 ++++++++++++++++++++++++++++++++++
src/include/common/controldata_utils.h |  6 ++-
3 files changed, 101 insertions(+), 42 deletions(-)



Message-ID: <E1h3Vro-0003eS-9y@gemulon.postgresql.org>
Permalink:  ../E1h3Vro-0003eS-9y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h3Vro-0003eS-9y@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 routine able to update the control file to src/common/
  In-Reply-To: <E1h3Vro-0003eS-9y@gemulon.postgresql.org>
  References: <E1h3Vro-0003eS-9y@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