Add -F option to pg_receivexlog, for specifying fsync interval.
Fujii Masao <fujii@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_receivexlog.sgml | modified | +15 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +1 −1 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +16 −2 |
| src/bin/pg_basebackup/receivelog.c | modified | +161 −66 |
| src/bin/pg_basebackup/receivelog.h | modified | +2 −1 |