From 9c9936587c6a9aeb8b425a499cf73e5e7af38ddd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 26 Feb 2001 00:50:08 +0000 Subject: Implement COMMIT_SIBLINGS parameter to allow pre-commit delay to occur only if at least N other backends currently have open transactions. This is not a great deal of intelligence about whether a delay might be profitable ... but it beats no intelligence at all. Note that the default COMMIT_DELAY is still zero --- this new code does nothing unless that setting is changed. Also, mark ENABLEFSYNC as a system-wide setting. It's no longer safe to allow that to be set per-backend, since we may be relying on some other backend's fsync to have synced the WAL log. --- src/backend/access/transam/xlog.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/access/transam/xlog.c') diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index fbc4223034a..fc861aba123 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.54 2001/02/18 04:39:42 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.55 2001/02/26 00:50:07 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2096,8 +2096,6 @@ ShutdownXLOG() elog(LOG, "database system is shut down"); } -extern XLogRecPtr GetUndoRecPtr(void); - void CreateCheckPoint(bool shutdown) { -- cgit v1.2.3