Define PG_TBLSPC_DIR for path pg_tblspc/ in data folder
Michael Paquier <michael@paquier.xyz>
Define PG_TBLSPC_DIR for path pg_tblspc/ in data folder Similarly to 2065ddf5e34c, this introduces a define for "pg_tblspc". This makes the style more consistent with the existing PG_STAT_TMP_DIR, for example. There is a difference with the other cases with the introduction of PG_TBLSPC_DIR_SLASH, required in two places for recovery and backups. Author: Bertrand Drouvot Reviewed-by: Ashutosh Bapat, Álvaro Herrera, Yugo Nagata, Michael Paquier Discussion: https://postgr.es/m/ZryVvjqS9SnV1GPP@ip-10-97-1-34.eu-west-3.compute.internal
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +6 −6 |
| src/backend/access/transam/xlogrecovery.c | modified | +8 −7 |
| src/backend/backup/backup_manifest.c | modified | +2 −1 |
| src/backend/backup/basebackup.c | modified | +1 −1 |
| src/backend/commands/dbcommands.c | modified | +1 −1 |
| src/backend/commands/tablespace.c | modified | +2 −2 |
| src/backend/storage/file/fd.c | modified | +15 −14 |
| src/backend/storage/file/reinit.c | modified | +5 −5 |
| src/backend/utils/adt/dbsize.c | modified | +4 −4 |
| src/backend/utils/adt/misc.c | modified | +2 −2 |
| src/backend/utils/cache/relcache.c | modified | +2 −2 |
| src/bin/pg_checksums/pg_checksums.c | modified | +3 −3 |
| src/bin/pg_combinebackup/pg_combinebackup.c | modified | +9 −9 |
| src/bin/pg_rewind/file_ops.c | modified | +1 −1 |
| src/bin/pg_upgrade/exec.c | modified | +1 −1 |
| src/common/file_utils.c | modified | +2 −1 |
| src/common/relpath.c | modified | +15 −10 |
| src/include/common/relpath.h | modified | +9 −0 |
Discussion
- define PG_REPLSLOT_DIR 26 messages · 2024-08-14 → 2024-09-03