summaryrefslogtreecommitdiff
path: root/src/backend/replication/basebackup.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2013-12-18 23:42:44 +0900
committerTatsuo Ishii <ishii@postgresql.org>2013-12-18 23:42:44 +0900
commit65d6e4cb5c62371dae6c236a7e709d503ae6ddf8 (patch)
tree07fff22fb42940bcf618885589909de0adaa9f9c /src/backend/replication/basebackup.c
parentdba5a9dda9adbda16a72c46e1c012ee6552c248a (diff)
downloadpostgresql-65d6e4cb5c62371dae6c236a7e709d503ae6ddf8.tar.gz
Add ALTER SYSTEM command to edit the server configuration file.
Patch contributed by Amit Kapila. Reviewed by Hari Babu, Masao Fujii, Boszormenyi Zoltan, Andres Freund, Greg Smith and others.
Diffstat (limited to 'src/backend/replication/basebackup.c')
-rw-r--r--src/backend/replication/basebackup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c
index ba8d173357..244e3b0ab3 100644
--- a/src/backend/replication/basebackup.c
+++ b/src/backend/replication/basebackup.c
@@ -811,6 +811,13 @@ sendDir(char *path, int basepathlen, bool sizeonly)
strlen(PG_TEMP_FILE_PREFIX)) == 0)
continue;
+ /* skip auto conf temporary file */
+ if (strncmp(de->d_name,
+ PG_AUTOCONF_FILENAME ".temp",
+ sizeof(PG_AUTOCONF_FILENAME) + 4) == 0)
+ continue;
+
+
/*
* If there's a backup_label file, it belongs to a backup started by
* the user with pg_start_backup(). It is *not* correct for this