pg_standby: Don't use HAVE_WORKING_LINK
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 27 Feb 2020 15:33:05 +0000 (16:33 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 3 Mar 2020 07:54:44 +0000 (08:54 +0100)
HAVE_WORKING_LINK is meant to indicate support for hard links, mainly
for Windows.  Here it is used for soft links on Unix, and the
functionality is optional anyway, so we can just make it error out
normally if needed.

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

contrib/pg_standby/pg_standby.c

index 74149060a90d0076c86b2a6f9b13a0f86dee7a8d..c9f33e4254c4bc396147802265fe28965281487f 100644 (file)
@@ -144,10 +144,8 @@ CustomizableInitialize(void)
    switch (restoreCommandType)
    {
        case RESTORE_COMMAND_LINK:
-#ifdef HAVE_WORKING_LINK
            SET_RESTORE_COMMAND("ln -s -f", WALFilePath, xlogFilePath);
            break;
-#endif
        case RESTORE_COMMAND_COPY:
        default:
            SET_RESTORE_COMMAND("cp", WALFilePath, xlogFilePath);