]> granicus.if.org Git - postgresql/commit
Make pg_rewind skip files and directories that are removed during server start.
authorFujii Masao <fujii@postgresql.org>
Wed, 28 Mar 2018 19:56:52 +0000 (04:56 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 28 Mar 2018 19:56:52 +0000 (04:56 +0900)
commit266b6acb312fc440c1c1a2036aa9da94916beac6
tree174fcc3e8f64d8fc3ff847ceddfbb72fd891fceb
parent09e96b3f35627a2939e2effd8b98aaa934f59b32
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
doc/src/sgml/ref/pg_rewind.sgml
src/backend/replication/basebackup.c
src/bin/pg_rewind/filemap.c