Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7650c0

Browse files
committed
stub for remote operations on Windows
1 parent 481faf0 commit a7650c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pg_probackup.c

+6
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ static ConfigOption cmd_options[] =
207207
static void
208208
setMyLocation(void)
209209
{
210+
211+
#ifdef WIN32
212+
if (IsSshProtocol())
213+
elog(ERROR, "Remote operations on Windows are not possible at this moment");
214+
#endif
215+
210216
MyLocation = IsSshProtocol()
211217
? (backup_subcmd == ARCHIVE_PUSH_CMD || backup_subcmd == ARCHIVE_GET_CMD)
212218
? FIO_DB_HOST

0 commit comments

Comments
 (0)