summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorMichael Paquier2024-08-30 06:25:12 +0000
committerMichael Paquier2024-08-30 06:25:12 +0000
commitc39afc38cfec7c34b883095062a89a63b221521a (patch)
tree1784942625e22136eaa9d22802fadc4d9561d452 /src/include/replication
parent2065ddf5e34ce098f549c4279ee3ab33c188a764 (diff)
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/include/replication')
-rw-r--r--src/include/replication/reorderbuffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/replication/reorderbuffer.h b/src/include/replication/reorderbuffer.h
index 851a001c8bb..e332635f70b 100644
--- a/src/include/replication/reorderbuffer.h
+++ b/src/include/replication/reorderbuffer.h
@@ -18,6 +18,11 @@
#include "utils/snapshot.h"
#include "utils/timestamp.h"
+/* paths for logical decoding data (relative to installation's $PGDATA) */
+#define PG_LOGICAL_DIR "pg_logical"
+#define PG_LOGICAL_MAPPINGS_DIR PG_LOGICAL_DIR "/mappings"
+#define PG_LOGICAL_SNAPSHOTS_DIR PG_LOGICAL_DIR "/snapshots"
+
/* GUC variables */
extern PGDLLIMPORT int logical_decoding_work_mem;
extern PGDLLIMPORT int debug_logical_replication_streaming;