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-20T17:04:48Z
Lists: pgsql-hackers
Attachments
- v1-0001-pg_basebackup-When-Tx-y-is-used-weaken-absolute-p.patch (application/octet-stream) patch v1-0001
On Thu, Oct 20, 2022 at 12:17 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Robert Haas <robertmhaas@gmail.com> writes: > > However, I think we could relax the check a little bit, something > > along the lines of !is_nonwindows_absolute_path(cell->old_dir) && > > !is_windows_absolute_path(dir). We can't actually know whether the > > remote side is Windows or non-Windows, but if the string we're given > > is plausibly an absolute path under either set of conventions, it's > > probably fine to just search the list for it and see if it shows up. > > Seems reasonable. Cool. Here's a patch. -- 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