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.
Showing
- doc/src/sgml/ref/pg_receivexlog.sgml 15 additions, 0 deletionsdoc/src/sgml/ref/pg_receivexlog.sgml
- src/bin/pg_basebackup/pg_basebackup.c 1 addition, 1 deletionsrc/bin/pg_basebackup/pg_basebackup.c
- src/bin/pg_basebackup/pg_receivexlog.c 16 additions, 2 deletionssrc/bin/pg_basebackup/pg_receivexlog.c
- src/bin/pg_basebackup/receivelog.c 161 additions, 66 deletionssrc/bin/pg_basebackup/receivelog.c
- src/bin/pg_basebackup/receivelog.h 2 additions, 1 deletionsrc/bin/pg_basebackup/receivelog.h
Loading
Please register or sign in to comment