diff options
| author | Tom Lane | 2002-03-15 19:20:36 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-03-15 19:20:36 +0000 |
| commit | 01747692fe133305b03ccd7505e92b1d18c3ea1b (patch) | |
| tree | 8ce3874c350868ed1d0054acb93919bb52aba2de /src/include | |
| parent | 0b73fe14f18126d534d4dfb83b8317da8a951fae (diff) | |
Repair two problems with WAL logging of sequence nextvalI() ops, as
per recent pghackers discussion: force a new WAL record at first nextval
after a checkpoint, and ensure that xlog is flushed to disk if a nextval
record is the only thing emitted by a transaction.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/xlog.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 4278f2fbb85..9252a8d324a 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: xlog.h,v 1.28 2001/11/05 17:46:31 momjian Exp $ + * $Id: xlog.h,v 1.29 2002/03/15 19:20:36 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -178,6 +178,8 @@ typedef struct XLogRecData extern StartUpID ThisStartUpID; /* current SUI */ extern bool InRecovery; extern XLogRecPtr MyLastRecPtr; +extern bool MyXactMadeXLogEntry; +extern XLogRecPtr ProcLastRecEnd; /* these variables are GUC parameters related to XLOG */ extern int CheckPointSegments; @@ -205,8 +207,9 @@ extern void ShutdownXLOG(void); extern void CreateCheckPoint(bool shutdown); extern void SetThisStartUpID(void); extern void XLogPutNextOid(Oid nextOid); -extern void SetRedoRecPtr(void); -extern void GetRedoRecPtr(void); +extern void SetSavedRedoRecPtr(void); +extern void GetSavedRedoRecPtr(void); +extern XLogRecPtr GetRedoRecPtr(void); /* in storage/ipc/sinval.c, but don't want to declare in sinval.h because * we'd have to include xlog.h into that ... |
