mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
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.
This commit is contained in:
@@ -105,6 +105,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</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>
|
||||
|
Reference in New Issue
Block a user