Remove HAVE_WORKING_LINK

Enterprise / PostgreSQL - Peter Eisentraut [eisentraut.org] - 11 March 2020 10:23 EDT

Previously, hard links were not used on Windows and Cygwin, but they support them just fine in currently supported OS versions, so we can use them there as well.

Since all supported platforms now support hard links, we can remove the alternative code paths.

Rename durable_link_or_rename() to durable_rename_excl() to make the purpose more clear without referencing the implementation details.

Discussion: https://www.postgresql.org/message-id/flat/72fff73f-dc9c-4ef4-83e8-d2e60c98df48%402ndquadrant.com

aaa3aeddee Remove HAVE_WORKING_LINK
src/backend/access/transam/timeline.c | 4 ++--
src/backend/access/transam/xlog.c | 4 ++--
src/backend/storage/file/fd.c | 21 +++++----------------
src/include/pg_config_manual.h | 7 -------
src/include/storage/fd.h | 2 +-
5 files changed, 10 insertions(+), 28 deletions(-)

Upstream: git.postgresql.org


  • Share