1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-25 13:17:41 +03:00

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.
This commit is contained in:
Tom Lane
2002-09-26 22:58:34 +00:00
parent c87469e64a
commit b2ab1e6bc9
5 changed files with 26 additions and 25 deletions

View File

@@ -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);