diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-09-03 09:11:54 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-09-03 09:11:54 +0900 |
commit | c7cd2d6ed082a4638172acece33ed6f36da96263 (patch) | |
tree | f4a8ab1b49eac09019d6b6a6114e9d9a00e9f1a8 /src/bin/pg_rewind/file_ops.c | |
parent | 94eec79633f284488de69e253857e44aad10c730 (diff) | |
download | postgresql-c7cd2d6ed082a4638172acece33ed6f36da96263.tar.gz postgresql-c7cd2d6ed082a4638172acece33ed6f36da96263.zip |
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
Diffstat (limited to 'src/bin/pg_rewind/file_ops.c')
-rw-r--r-- | src/bin/pg_rewind/file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_rewind/file_ops.c b/src/bin/pg_rewind/file_ops.c index d93580bb419..67a86bb4c5f 100644 --- a/src/bin/pg_rewind/file_ops.c +++ b/src/bin/pg_rewind/file_ops.c @@ -452,7 +452,7 @@ recurse_dir(const char *datadir, const char *parentpath, * to process all the tablespaces. We also follow a symlink if * it's for pg_wal. Symlinks elsewhere are ignored. */ - if ((parentpath && strcmp(parentpath, "pg_tblspc") == 0) || + if ((parentpath && strcmp(parentpath, PG_TBLSPC_DIR) == 0) || strcmp(path, "pg_wal") == 0) recurse_dir(datadir, path, callback); } |