From 16974ee9103ef7908e81869687b3fc3719e64a4e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 27 May 2004 17:12:57 +0000 Subject: Get rid of the former rather baroque mechanism for propagating the values of ThisStartUpID and RedoRecPtr into new backends. It's a lot easier just to make them all grab the values out of shared memory during startup. This helps to decouple the postmaster from checkpoint execution, which I need since I'm intending to let the bgwriter do it instead, and it also fixes a bug in the Win32 port: ThisStartUpID wasn't getting propagated at all AFAICS. (Doesn't give me a lot of faith in the amount of testing that port has gotten.) --- src/include/access/xlog.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/include/access/xlog.h') diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 8f9d97adad3..b0ebedcf329 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.49 2004/02/11 22:55:25 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.50 2004/05/27 17:12:57 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -230,11 +230,9 @@ extern void XLOGPathInit(void); extern void BootStrapXLOG(void); extern void StartupXLOG(void); extern void ShutdownXLOG(int code, Datum arg); +extern void InitXLOGAccess(void); extern void CreateCheckPoint(bool shutdown, bool force); -extern void SetThisStartUpID(void); extern void XLogPutNextOid(Oid nextOid); -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 -- cgit v1.2.3