diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-26 22:58:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-26 22:58:34 +0000 |
commit | b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c (patch) | |
tree | bb3be2527c94154e02a290655b9584d00a940879 /src/include/access/xlog.h | |
parent | c87469e64a9b893b72254a1850c366fb04777430 (diff) | |
download | postgresql-b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c.tar.gz postgresql-b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c.zip |
Ensure that before truncating CLOG, we force a checkpoint even if no
recent WAL activity has occurred. Without this, it's possible that a
later crash might leave tuples on disk with un-updated commit status
bits.
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 c8c49936803..f5c3e59cbce 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: xlog.h,v 1.38 2002/09/26 22:46:29 tgl Exp $ + * $Id: xlog.h,v 1.39 2002/09/26 22:58:34 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -204,7 +204,7 @@ extern void XLOGPathInit(void); extern void BootStrapXLOG(void); extern void StartupXLOG(void); extern void ShutdownXLOG(void); -extern void CreateCheckPoint(bool shutdown); +extern void CreateCheckPoint(bool shutdown, bool force); extern void SetThisStartUpID(void); extern void XLogPutNextOid(Oid nextOid); extern void SetSavedRedoRecPtr(void); |