Remove HAVE_WORKING_LINK
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 11 Mar 2020 09:58:02 +0000 (10:58 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 11 Mar 2020 10:23:04 +0000 (11:23 +0100)
commitaaa3aeddee51dd0058d38469907865052706a590
tree3841e6a44c6787e8bea1b5ec3060c473d79e0d20
parentd114cc538715e14d29d6de8b6ea1a1d5d3e0edb4
Remove HAVE_WORKING_LINK

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
src/backend/access/transam/timeline.c
src/backend/access/transam/xlog.c
src/backend/storage/file/fd.c
src/include/pg_config_manual.h
src/include/storage/fd.h