pgsql: Fix concurrency issues with WAL segment recycling on Windows

2021-03-21 Thread Michael Paquier
Fix concurrency issues with WAL segment recycling on Windows This commit is mostly a revert of aaa3aed, that switched the routine doing the internal renaming of recycled WAL segments to use on Windows a combination of CreateHardLinkA() plus unlink() instead of rename(). As reported by several use

pgsql: Fix concurrency issues with WAL segment recycling on Windows

2021-03-21 Thread Michael Paquier
Fix concurrency issues with WAL segment recycling on Windows This commit is mostly a revert of aaa3aed, that switched the routine doing the internal renaming of recycled WAL segments to use on Windows a combination of CreateHardLinkA() plus unlink() instead of rename(). As reported by several use