HAVE_WORKING_LINK still needed?
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-02-28T13:14:51Z
Lists: pgsql-hackers
Attachments
- 0001-pg_standby-Don-t-use-HAVE_WORKING_LINK.patch (text/plain) patch 0001
- 0002-Move-pg_upgrade-s-Windows-link-implementation-to-AC_.patch (text/plain) patch 0002
- 0003-Remove-HAVE_WORKING_LINK.patch (text/plain) patch 0003
I came across the HAVE_WORKING_LINK define in pg_config_manual.h. AFAICT, hard links are supported on Windows and Cygwin in the OS versions that we support, and pg_upgrade already contains the required shim. It seems to me we could normalize and simplify that, as in the attached patches. (Perhaps rename durable_link_or_rename() then.) I successfully tested on MSVC, MinGW, and Cygwin. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Remove HAVE_WORKING_LINK
- aaa3aeddee51 13.0 landed
-
Move pg_upgrade's Windows link() implementation to AC_REPLACE_FUNCS
- 0ad6f848eef2 13.0 landed
-
pg_standby: Don't use HAVE_WORKING_LINK
- 1810ca18bfad 13.0 landed
-
Update Microsoft documentation link
- ed0d88376589 13.0 landed