pgsql: Define PG_REPLSLOT_DIR for path pg_replslot/ in data folder

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Define PG_REPLSLOT_DIR for path pg_replslot/ in data folder
Date: 2024-08-30 01:43:10
Message-ID: E1sjqfO-0023oH-6d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2065ddf5e34ce098f549c4279ee3ab33c188a764

Modified Files
--------------
src/backend/backup/basebackup.c | 3 +-
src/backend/replication/logical/reorderbuffer.c | 17 ++++-----
src/backend/replication/slot.c | 46 ++++++++++++-------------
src/backend/utils/adt/genfile.c | 5 +--
src/bin/pg_rewind/filemap.c | 2 +-
src/include/replication/slot.h | 3 ++
6 files changed, 41 insertions(+), 35 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-08-30 06:25:38 pgsql: Define PG_LOGICAL_DIR for path pg_logical/ in data folder
Previous Message Michael Paquier 2024-08-29 23:50:02 pgsql: Rename pg_sequence_read_tuple() to pg_get_sequence_data()