summaryrefslogtreecommitdiff
path: root/src/bin/pg_basebackup/pg_receivexlog.c
diff options
context:
space:
mode:
authorPeter Eisentraut2016-09-29 16:00:00 +0000
committerPeter Eisentraut2016-09-29 16:00:00 +0000
commit6ed2d8584cc680a2d6898480de74a57cd96176b5 (patch)
tree2535dcafd0635d487a9f9fff8e536e142d8b1120 /src/bin/pg_basebackup/pg_receivexlog.c
parentbc34223bc1e2c51dff2007b3d3bd492a09b5a491 (diff)
pg_basebackup: Add --nosync option
This is useful for testing, similar to initdb's --nosync. From: Michael Paquier <[email protected]>
Diffstat (limited to 'src/bin/pg_basebackup/pg_receivexlog.c')
-rw-r--r--src/bin/pg_basebackup/pg_receivexlog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/pg_receivexlog.c b/src/bin/pg_basebackup/pg_receivexlog.c
index 7f7ee9dc9ba..a58a251a59f 100644
--- a/src/bin/pg_basebackup/pg_receivexlog.c
+++ b/src/bin/pg_basebackup/pg_receivexlog.c
@@ -336,6 +336,7 @@ StreamLog(void)
stream.stream_stop = stop_streaming;
stream.standby_message_timeout = standby_message_timeout;
stream.synchronous = synchronous;
+ stream.do_sync = true;
stream.mark_done = false;
stream.basedir = basedir;
stream.partial_suffix = ".partial";