Symlink pg_replslot robustly on Windows in pg_basebackup test
authorAndrew Dunstan <[email protected]>
Mon, 8 Jul 2024 17:46:21 +0000 (13:46 -0400)
committerAndrew Dunstan <[email protected]>
Mon, 8 Jul 2024 17:53:54 +0000 (13:53 -0400)
commit4b719e15beed7ceb49d0bd4047aa08001c7fbcf6
treebd28ebb8b62ffb7315d99e3b00a580bd933b084a
parentb7d3be64e4378ad85e180838912c774825b02b8c
Symlink pg_replslot robustly on Windows in pg_basebackup test

This reverts commit e9f15bc9. Instead of a hacky solution that didn't
work on Windows, we avoid trying to move the directory possibly across
drives, and instead remove it and recreate it in the new location.

Discussion: https://postgr.es/m/20240707070243[email protected]

Backpatch to release 14 like the previous patch.
src/bin/pg_basebackup/t/010_pg_basebackup.pl