Skip site navigation (1) Skip section navigation (2)

pgsql: Before exiting walreceiver, fsync() all the WAL received.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Before exiting walreceiver, fsync() all the WAL received.
Date: 2011-01-17 10:28:02
Message-ID: E1PemJe-00079V-7H@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Before exiting walreceiver, fsync() all the WAL received.

Otherwise WAL recovery will replay the un-flushed WAL after walreceiver has
exited, which can lead to a non-recoverable standby if the system crashes hard
at that point.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=34ef02b4d4c06e2bae6ad09cfd6d9c097eb73743

Modified Files
--------------
src/backend/replication/walreceiver.c |    3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2011-01-17 10:29:37
Subject: pgsql: Before exiting walreceiver, fsync() all the WAL received.
Previous:From: Bruce MomjianDate: 2011-01-16 13:37:15
Subject: pgsql: In test_fsync, use #define for printf format of ops/sec.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group