Re: cross-platform pg_basebackup
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2022-10-20T18:47:21Z
Lists: pgsql-hackers
Attachments
- v2-0001-pg_basebackup-Fix-cross-platform-tablespace-reloc.patch (application/octet-stream) patch v2-0001
On Thu, Oct 20, 2022 at 1:28 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Robert Haas <robertmhaas@gmail.com> writes: > > Cool. Here's a patch. > > LGTM, except I'd be inclined to ensure that all the macros > are function-style, ie > > +#define IS_DIR_SEP(ch) IS_NONWINDOWS_DIR_SEP(ch) > > not just > > +#define IS_DIR_SEP IS_NONWINDOWS_DIR_SEP > > I don't recall the exact rules, but I know that the second style > can lead to expanding the macro in more cases, which we likely > don't want. It also seems like better documentation to show > the expected arguments. OK, thanks. v2 attached. -- Robert Haas EDB: http://www.enterprisedb.com
Commits
-
pg_basebackup: Fix cross-platform tablespace relocation.
- ba58266eb8db 10.23 landed
- 38214dabd425 11.18 landed
- 475e9daf3979 12.13 landed
- 0bf2cd1602b1 13.9 landed
- aaad8adb02ed 14.6 landed
- 5c013e620c91 15.1 landed
- 1f0c4fa25525 16.0 landed