diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-08-08 16:50:54 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-08-08 16:50:54 +0900 |
commit | 3dad73e71f08abd86564d5090a58ca71740e07e0 (patch) | |
tree | 3e1f545c5ed8c6bfb9969fa0028f540d953adea5 /src/bin/pg_basebackup/pg_basebackup.c | |
parent | 1add956ac70384a99ed6606e2963a5a53f567add (diff) | |
download | postgresql-3dad73e71f08abd86564d5090a58ca71740e07e0.tar.gz postgresql-3dad73e71f08abd86564d5090a58ca71740e07e0.zip |
Add -F option to pg_receivexlog, for specifying fsync interval.
This allows us to specify the maximum time to issue fsync to ensure
the received WAL file is safely flushed to disk. Without this,
pg_receivexlog always flushes WAL file only when it's closed and
which can cause WAL data to be lost at the event of a crash.
Furuya Osamu, heavily modified by me.
Diffstat (limited to 'src/bin/pg_basebackup/pg_basebackup.c')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 5df2eb8c0db..0b02c4c4014 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -371,7 +371,7 @@ LogStreamerMain(logstreamer_param *param) if (!ReceiveXlogStream(param->bgconn, param->startptr, param->timeline, param->sysidentifier, param->xlogdir, reached_end_position, standby_message_timeout, - NULL)) + NULL, 0)) /* * Any errors will already have been reported in the function process, |