Define PG_REPLSLOT_DIR for path pg_replslot/ in data folder
authorMichael Paquier <michael@paquier.xyz>
Fri, 30 Aug 2024 01:42:21 +0000 (10:42 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 30 Aug 2024 01:42:21 +0000 (10:42 +0900)
commit2065ddf5e34ce098f549c4279ee3ab33c188a764
tree1b14e002d791ea030843a3e590ba6db67d9a8ab4
parenta83a944e9fdd573802c82d961126ba07bfb65f98
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
src/backend/backup/basebackup.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/slot.c
src/backend/utils/adt/genfile.c
src/bin/pg_rewind/filemap.c
src/include/replication/slot.h