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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add routine able to update the control file to src/common/
Date: 2019-03-12 01:06:04
Message-ID: E1h3Vro-0003eS-9y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-03-12 02:23:12 Re: pgsql: Removed unused variable, openLogOff.
Previous Message Tom Lane 2019-03-11 23:14:07 pgsql: Allow fractional input values for integer GUCs, and improve roun