Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1810ca1

Browse files
committed
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
1 parent 61b7394 commit 1810ca1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

contrib/pg_standby/pg_standby.c

-2
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ CustomizableInitialize(void)
144144
switch (restoreCommandType)
145145
{
146146
case RESTORE_COMMAND_LINK:
147-
#ifdef HAVE_WORKING_LINK
148147
SET_RESTORE_COMMAND("ln -s -f", WALFilePath, xlogFilePath);
149148
break;
150-
#endif
151149
case RESTORE_COMMAND_COPY:
152150
default:
153151
SET_RESTORE_COMMAND("cp", WALFilePath, xlogFilePath);

0 commit comments

Comments
 (0)