From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make pg_rewind skip files and directories that are removed durin
Date: Wed, 28 Mar 2018 19:59:37 +0000
Message-ID: <E1f1HEP-0003VS-B7@gemulon.postgresql.org> (raw)
Make pg_rewind skip files and directories that are removed during server start.
The target cluster that was rewound needs to perform recovery from
the checkpoint created at failover, which leads it to remove or recreate
some files and directories that may have been copied from the source
cluster. So pg_rewind can skip synchronizing such files and directories,
and which reduces the amount of data transferred during a rewind
without changing the usefulness of the operation.
Author: Michael Paquier
Reviewed-by: Anastasia Lubennikova, Stephen Frost and me
Discussion: https://postgr.es/m/20180205071022.GA17337@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/266b6acb312fc440c1c1a2036aa9da94916beac6
Modified Files
--------------
doc/src/sgml/ref/pg_rewind.sgml | 14 +++-
src/backend/replication/basebackup.c | 3 +
src/bin/pg_rewind/filemap.c | 144 ++++++++++++++++++++++++++++++++---
3 files changed, 148 insertions(+), 13 deletions(-)
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: fujii@postgresql.org
Subject: Re: pgsql: Make pg_rewind skip files and directories that are removed durin
In-Reply-To: <E1f1HEP-0003VS-B7@gemulon.postgresql.org>
References: <E1f1HEP-0003VS-B7@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