aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/basebackup.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2018-03-29 04:56:52 +0900
committerFujii Masao <fujii@postgresql.org>2018-03-29 04:56:52 +0900
commit266b6acb312fc440c1c1a2036aa9da94916beac6 (patch)
tree174fcc3e8f64d8fc3ff847ceddfbb72fd891fceb /src/backend/replication/basebackup.c
parent09e96b3f35627a2939e2effd8b98aaa934f59b32 (diff)
downloadpostgresql-266b6acb312fc440c1c1a2036aa9da94916beac6.tar.gz
postgresql-266b6acb312fc440c1c1a2036aa9da94916beac6.zip
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
Diffstat (limited to 'src/backend/replication/basebackup.c')
-rw-r--r--src/backend/replication/basebackup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c
index 654d0832da2..516eea57f8d 100644
--- a/src/backend/replication/basebackup.c
+++ b/src/backend/replication/basebackup.c
@@ -103,6 +103,9 @@ static TimestampTz throttled_last;
* The contents of these directories are removed or recreated during server
* start so they are not included in backups. The directories themselves are
* kept and included as empty to preserve access permissions.
+ *
+ * Note: this list should be kept in sync with the filter lists in pg_rewind's
+ * filemap.c.
*/
static const char *excludeDirContents[] =
{