diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-02-27 16:33:05 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-03-03 08:54:44 +0100 |
commit | 1810ca18bfad9072facc548417630115b078483e (patch) | |
tree | b636f2cbc656bb40f7a9a21289fa92c6bd638a42 | |
parent | 61b73940452b1f6871a1d73f35216fb052a7a5ab (diff) |
pg_standby: Don't use HAVE_WORKING_LINK
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
-rw-r--r-- | contrib/pg_standby/pg_standby.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index 74149060a90..c9f33e4254c 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -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); |