diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-17 16:41:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-06-17 16:41:25 +0000 |
commit | 07e8b6aabcca3ad9a67681694d955f607e29ce7b (patch) | |
tree | 0d7aff9b127566412a2bd3b8606ae501b3c11f91 /src/include/access/xlog.h | |
parent | 8f4e1218458d0d34825d41b50aabadacbdf93697 (diff) | |
download | postgresql-07e8b6aabcca3ad9a67681694d955f607e29ce7b.tar.gz postgresql-07e8b6aabcca3ad9a67681694d955f607e29ce7b.zip |
Don't allow walsender to send WAL data until it's been safely fsync'd on the
master. Otherwise a subsequent crash could cause the master to lose WAL that
has already been applied on the slave, resulting in the slave being out of
sync and soon corrupt. Per recent discussion and an example from Robert Haas.
Fujii Masao
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 1a8f455dba6..cbadd7f91fb 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.112 2010/06/10 07:49:23 heikki Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.113 2010/06/17 16:41:25 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -294,7 +294,7 @@ extern bool CreateRestartPoint(int flags); extern void XLogPutNextOid(Oid nextOid); extern XLogRecPtr GetRedoRecPtr(void); extern XLogRecPtr GetInsertRecPtr(void); -extern XLogRecPtr GetWriteRecPtr(void); +extern XLogRecPtr GetFlushRecPtr(void); extern void GetNextXidAndEpoch(TransactionId *xid, uint32 *epoch); extern TimeLineID GetRecoveryTargetTLI(void); |