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 /doc/src | |
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 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_receivexlog.sgml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_receivexlog.sgml b/doc/src/sgml/ref/pg_receivexlog.sgml index 7c50b01a57b..c15776fc585 100644 --- a/doc/src/sgml/ref/pg_receivexlog.sgml +++ b/doc/src/sgml/ref/pg_receivexlog.sgml @@ -106,6 +106,21 @@ PostgreSQL documentation </varlistentry> <varlistentry> + <term><option>-F <replaceable class="parameter">interval</replaceable></option></term> + <term><option>--fsync-interval=<replaceable class="parameter">interval</replaceable></option></term> + <listitem> + <para> + Specifies the maximum time to issue sync commands to ensure the + received WAL file is safely flushed to disk, in seconds. The default + value is zero, which disables issuing fsyncs except when WAL file is + closed. If <literal>-1</literal> is specified, WAL file is flushed as + soon as possible, that is, as soon as there are WAL data which has + not been flushed yet. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-v</option></term> <term><option>--verbose</option></term> <listitem> |