Re: define PG_REPLSLOT_DIR
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, pgsql-hackers@lists.postgresql.org
Date: 2024-08-30T12:21:29Z
Lists: pgsql-hackers
Attachments
- v4-0001-Define-PG_TBLSPC_DIR.patch (text/x-diff)
Hi, On Fri, Aug 30, 2024 at 03:34:56PM +0900, Michael Paquier wrote: > On Tue, Aug 20, 2024 at 04:23:06PM +0000, Bertrand Drouvot wrote: > > Please find attached v3 that: > > > > - takes care of your comments (and also removed the use of PG_TBLSPC_DIR in > > RELATIVE_PG_TBLSPC_DIR). > > - removes the new macros from the comments (see Michael's and Yugo-San's > > comments in [0] resp. [1]). > > - adds a missing sizeof() (see [1]). > > - implements Ashutosh's idea of adding a new SLOT_DIRNAME_ARGS (see [2]). It's > > done in 0002 (I used REPLSLOT_DIR_ARGS though). > > - fixed a macro usage in ReorderBufferCleanupSerializedTXNs() (was not at the > > right location, discovered while implementing 0002). > > I was looking at that, and applied 0001 for pg_replslot and merged > 0003~0005 together for pg_logical. Thanks! > In 0006, I am not sure that RELATIVE_PG_TBLSPC_DIR is really something > we should have. Sure, that's a special case for base backups when > sending a directory, but we have also pg_wal/ and its XLOGDIR so > that's inconsistent. That's right but OTOH there is no (for good reason) PG_WAL_DIR or such defined. That said, I don't have a strong opinion on this one, I think that also makes sense to leave it as it is. Please find attached v4 doing so. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
-
Define PG_TBLSPC_DIR for path pg_tblspc/ in data folder
- c7cd2d6ed082 18.0 landed
-
Define PG_LOGICAL_DIR for path pg_logical/ in data folder
- c39afc38cfec 18.0 landed
-
Define PG_REPLSLOT_DIR for path pg_replslot/ in data folder
- 2065ddf5e34c 18.0 landed