From 94a41d132631f31646b81e3307c3c8d28682a4e9 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 15 Mar 2002 19:20:47 +0000 Subject: 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. --- src/backend/bootstrap/bootstrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index cd118d30d74..44d5e2efd98 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.120 2002/01/10 01:11:45 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.120.2.1 2002/03/15 19:20:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -380,7 +380,7 @@ BootstrapMain(int argc, char *argv[]) InitDummyProcess(); /* needed to get LWLocks */ CreateDummyCaches(); CreateCheckPoint(false); - SetRedoRecPtr(); + SetSavedRedoRecPtr(); /* pass redo ptr back to postmaster */ proc_exit(0); /* done */ case BS_XLOG_STARTUP: -- cgit v1.2.3