diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-01-20 19:43:40 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-01-20 19:43:40 +0000 |
commit | 09b115f70684ea20dc344faab1a96f2831d3ee75 (patch) | |
tree | 97ee9e81891d786e815ebc0e7e69a293f212fd5d /src/include/access/xlog.h | |
parent | 47ce95a7b98ff06b51f12a7381fc3788dff9961c (diff) | |
download | postgresql-09b115f70684ea20dc344faab1a96f2831d3ee75.tar.gz postgresql-09b115f70684ea20dc344faab1a96f2831d3ee75.zip |
Write a WAL record whenever we perform an operation without WAL-logging
that would've been WAL-logged if archiving was enabled. If we encounter
such records in archive recovery anyway, we know that some data is
missing from the log. A WARNING is emitted in that case.
Original patch by Fujii Masao, with changes by me.
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index d0cb6550b69..ca4d7f289a7 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.97 2010/01/16 00:04:41 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.98 2010/01/20 19:43:40 heikki Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -278,6 +278,7 @@ extern void InitXLOGAccess(void); extern void CreateCheckPoint(int flags); extern bool CreateRestartPoint(int flags); extern void XLogPutNextOid(Oid nextOid); +extern void XLogReportUnloggedStatement(char *reason); extern XLogRecPtr GetRedoRecPtr(void); extern XLogRecPtr GetInsertRecPtr(void); extern XLogRecPtr GetWriteRecPtr(void); |