Fix tmpdir issues with commit e213de8e78
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 8 Jul 2023 16:34:25 +0000 (12:34 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 8 Jul 2023 16:34:25 +0000 (12:34 -0400)
commite9f15bc9db7564a29460d089c0917590bc13fffc
tree0662124036b0b268e775a6a9f9dc8c6c3e8fe8c6
parente213de8e785aac4e2ebc44282b8dc0fcc74834e8
Fix tmpdir issues with commit e213de8e78

Commit e213de8e78 fixed a problem with path lengths to a tempdir on
Windows, but caused problems on at least some Unix systems where the
system tempdir is on a different file system. To work around this, only
used the system temdir for the destination of pg_replslot on Windows,
and otherwise restore the old behaviour.

Backpatch to relase 14 like the previous patch.

Problem exposed by a myriad of buildfarm animals.
src/bin/pg_basebackup/t/010_pg_basebackup.pl