diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2017-11-07 12:28:35 -0500 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2017-11-07 12:28:35 -0500 |
commit | 98267ee83e068afa8bd85c8cc710ab2144e711fa (patch) | |
tree | eae10c05346f5518bc7a31179083ba9bc058b63b /src/backend/replication/basebackup.c | |
parent | d0c80c17f1a6d0b93d2ca14fe47d83b131ce9108 (diff) | |
download | postgresql-98267ee83e068afa8bd85c8cc710ab2144e711fa.tar.gz postgresql-98267ee83e068afa8bd85c8cc710ab2144e711fa.zip |
Exclude pg_internal.init from BASE_BACKUP
Add docs to explain this for other backup mechanisms
Author: David Steele <david@pgmasters.net>
Reviewed-by: Petr Jelinek <petr.jelinek@2ndQuadrant.com> et al
Diffstat (limited to 'src/backend/replication/basebackup.c')
-rw-r--r-- | src/backend/replication/basebackup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c index 75029b0def9..1411c14e928 100644 --- a/src/backend/replication/basebackup.c +++ b/src/backend/replication/basebackup.c @@ -36,6 +36,7 @@ #include "utils/builtins.h" #include "utils/elog.h" #include "utils/ps_status.h" +#include "utils/relcache.h" #include "utils/timestamp.h" @@ -151,6 +152,9 @@ static const char *excludeFiles[] = /* Skip current log file temporary file */ LOG_METAINFO_DATAFILE_TMP, + /* Skip relation cache because it is rebuilt on startup */ + RELCACHE_INIT_FILENAME, + /* * If there's a backup_label or tablespace_map file, it belongs to a * backup started by the user with pg_start_backup(). It is *not* correct |