]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_basebackup: Fix cross-platform tablespace relocation.
authorRobert Haas <rhaas@postgresql.org>
Fri, 21 Oct 2022 12:21:55 +0000 (08:21 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 21 Oct 2022 13:11:47 +0000 (09:11 -0400)
commitba58266eb8dbe56f5dd48dc584816104343ffe85
tree0c0e56b65b5b22103ad162cd8b884c03aad9762f
parent61838d2dd3c49a4616bfae0b54f72ba4f893b7e1
pg_basebackup: Fix cross-platform tablespace relocation.

Specifically, when pg_basebackup is invoked with -Tx=y, don't error
out if x could plausibly be an absolute path either on Windows or on
non-Windows systems. We don't know whether the remote system is
running the same OS as the local system, so it's not appropriate to
assume that our local rule about absolute pathnames is the same as
the rule on the remote system.

Patch by me, reviewed by Tom Lane, Andrew Dunstan, and
Davinder Singh.

Discussion: http://postgr.es/m/CA+TgmoY+jC3YiskomvYKDPK3FbrmsDU7_8+wMHt02HOdJeRb0g@mail.gmail.com
src/bin/pg_basebackup/pg_basebackup.c
src/include/port.h