From 3dad73e71f08abd86564d5090a58ca71740e07e0 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Fri, 8 Aug 2014 16:50:54 +0900 Subject: 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. --- doc/src/sgml/ref/pg_receivexlog.sgml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'doc/src') 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 @@ -105,6 +105,21 @@ PostgreSQL documentation + + + + + + 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 -1 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. + + + + -- cgit v1.2.3