pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor pg_rewind for more clear decision making.
Date: Wed, 04 Nov 2020 09:22:56 +0000
Message-ID: <E1kaF0K-0001nG-KM@gemulon.postgresql.org> (raw)

Refactor pg_rewind for more clear decision making.

Deciding what to do with each file is now a separate step after all the
necessary information has been gathered. It is more clear that way.
Previously, the decision-making was divided between process_source_file()
and process_target_file(), and it was a bit hard to piece together what
the overall rules were.

Reviewed-by: Kyotaro Horiguchi, Soumyadeep Chakraborty
Discussion: https://www.postgresql.org/message-id/0c5b3783-af52-3ee5-f8fa-6e794061f70d%40iki.fi

Branch
------
master

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

Modified Files
--------------
src/bin/pg_rewind/copy_fetch.c  |  14 +-
src/bin/pg_rewind/file_ops.c    |  16 +-
src/bin/pg_rewind/filemap.c     | 572 +++++++++++++++++++++-------------------
src/bin/pg_rewind/filemap.h     |  76 ++++--
src/bin/pg_rewind/libpq_fetch.c |  12 +-
src/bin/pg_rewind/parsexlog.c   |   2 +-
src/bin/pg_rewind/pg_rewind.c   |   8 +-
7 files changed, 386 insertions(+), 314 deletions(-)



Message-ID: <E1kaF0K-0001nG-KM@gemulon.postgresql.org>
Permalink:  ../E1kaF0K-0001nG-KM@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kaF0K-0001nG-KM@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Refactor pg_rewind for more clear decision making.
  In-Reply-To: <E1kaF0K-0001nG-KM@gemulon.postgresql.org>
  References: <E1kaF0K-0001nG-KM@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