diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-08-30 10:42:21 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-08-30 10:42:21 +0900 |
commit | 2065ddf5e34ce098f549c4279ee3ab33c188a764 (patch) | |
tree | 1b14e002d791ea030843a3e590ba6db67d9a8ab4 /src/backend/backup | |
parent | a83a944e9fdd573802c82d961126ba07bfb65f98 (diff) | |
download | postgresql-2065ddf5e34ce098f549c4279ee3ab33c188a764.tar.gz postgresql-2065ddf5e34ce098f549c4279ee3ab33c188a764.zip |
Define PG_REPLSLOT_DIR for path pg_replslot/ in data folder
This commit replaces most of the hardcoded values of "pg_replslot" by a
new PG_REPLSLOT_DIR #define. This makes the style more consistent with
the existing PG_STAT_TMP_DIR, for example. More places will follow a
similar change.
Author: Bertrand Drouvot
Reviewed-by: Ashutosh Bapat, Yugo Nagata, Michael Paquier
Discussion: https://postgr.es/m/ZryVvjqS9SnV1GPP@ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/backup')
-rw-r--r-- | src/backend/backup/basebackup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/backup/basebackup.c b/src/backend/backup/basebackup.c index 01b35e26bda..de16afac749 100644 --- a/src/backend/backup/basebackup.c +++ b/src/backend/backup/basebackup.c @@ -36,6 +36,7 @@ #include "port.h" #include "postmaster/syslogger.h" #include "postmaster/walsummarizer.h" +#include "replication/slot.h" #include "replication/walsender.h" #include "replication/walsender_private.h" #include "storage/bufpage.h" @@ -161,7 +162,7 @@ static const char *const excludeDirContents[] = * even if the intention is to restore to another primary. See backup.sgml * for a more detailed description. */ - "pg_replslot", + PG_REPLSLOT_DIR, /* Contents removed on startup, see dsm_cleanup_for_mmap(). */ PG_DYNSHMEM_DIR, |