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/include/access/xlog.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include/access/xlog.h') diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 47e14c3a82..c17bf32cc5 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -3,7 +3,7 @@ * * PostgreSQL transaction log manager * - * $Header: /cvsroot/pgsql/src/include/access/xlog.h,v 1.17 2001/01/14 05:08:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/include/access/xlog.h,v 1.18 2001/02/26 00:50:07 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -146,4 +146,9 @@ extern void ShutdownXLOG(void); extern void CreateCheckPoint(bool shutdown); extern void SetThisStartUpID(void); +/* in storage/ipc/sinval.c, but don't want to declare in sinval.h because + * we'd have to include xlog.h into that ... + */ +extern XLogRecPtr GetUndoRecPtr(void); + #endif /* XLOG_H */ -- cgit v1.2.1