diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-08-30 15:25:12 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-08-30 15:25:12 +0900 |
commit | c39afc38cfec7c34b883095062a89a63b221521a (patch) | |
tree | 1784942625e22136eaa9d22802fadc4d9561d452 /src/backend/utils/adt/genfile.c | |
parent | 2065ddf5e34ce098f549c4279ee3ab33c188a764 (diff) | |
download | postgresql-c39afc38cfec7c34b883095062a89a63b221521a.tar.gz postgresql-c39afc38cfec7c34b883095062a89a63b221521a.zip |
Define PG_LOGICAL_DIR for path pg_logical/ in data folder
This is similar to 2065ddf5e34c, but this time for pg_logical/ itself
and its contents, like the paths for snapshots, mappings or origin
checkpoints.
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/utils/adt/genfile.c')
-rw-r--r-- | src/backend/utils/adt/genfile.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/utils/adt/genfile.c b/src/backend/utils/adt/genfile.c index f240745cc41..24b95c32b78 100644 --- a/src/backend/utils/adt/genfile.c +++ b/src/backend/utils/adt/genfile.c @@ -690,21 +690,23 @@ pg_ls_archive_statusdir(PG_FUNCTION_ARGS) } /* - * Function to return the list of files in the pg_logical/snapshots directory. + * Function to return the list of files in the PG_LOGICAL_SNAPSHOTS_DIR + * directory. */ Datum pg_ls_logicalsnapdir(PG_FUNCTION_ARGS) { - return pg_ls_dir_files(fcinfo, "pg_logical/snapshots", false); + return pg_ls_dir_files(fcinfo, PG_LOGICAL_SNAPSHOTS_DIR, false); } /* - * Function to return the list of files in the pg_logical/mappings directory. + * Function to return the list of files in the PG_LOGICAL_MAPPINGS_DIR + * directory. */ Datum pg_ls_logicalmapdir(PG_FUNCTION_ARGS) { - return pg_ls_dir_files(fcinfo, "pg_logical/mappings", false); + return pg_ls_dir_files(fcinfo, PG_LOGICAL_MAPPINGS_DIR, false); } /* |