From dd515d4082876f9fcc0b6eed421dd3b6d43579be Mon Sep 17 00:00:00 2001 From: Fujii Masao <fujii@postgresql.org> Date: Mon, 27 Jan 2014 12:39:11 +0900 Subject: [PATCH] Change the suffix of auto conf temporary file from "temp" to "tmp". Michael Paquier --- src/backend/replication/basebackup.c | 2 +- src/backend/utils/misc/guc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c index fc35f5b2827..7d0ed9ce4c8 100644 --- a/src/backend/replication/basebackup.c +++ b/src/backend/replication/basebackup.c @@ -834,7 +834,7 @@ sendDir(char *path, int basepathlen, bool sizeonly, List *tablespaces) /* skip auto conf temporary file */ if (strncmp(de->d_name, - PG_AUTOCONF_FILENAME ".temp", + PG_AUTOCONF_FILENAME ".tmp", sizeof(PG_AUTOCONF_FILENAME) + 4) == 0) continue; diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 35dca18bfc0..59f395474a6 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -6670,7 +6670,7 @@ AlterSystemSetConfigFile(AlterSystemStmt * altersysstmt) canonicalize_path(AutoConfFileName); snprintf(AutoConfTmpFileName, sizeof(AutoConfTmpFileName), "%s.%s", AutoConfFileName, - "temp"); + "tmp"); /* * One backend is allowed to operate on file PG_AUTOCONF_FILENAME, to -- GitLab