]> granicus.if.org Git - postgresql/commit
Implement COMMIT_SIBLINGS parameter to allow pre-commit delay to occur
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Feb 2001 00:50:08 +0000 (00:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 26 Feb 2001 00:50:08 +0000 (00:50 +0000)
commit9c9936587c6a9aeb8b425a499cf73e5e7af38ddd
treef1d7328907a9ffb8a9319b689a9bb40f7e1d0313
parent60774e821060dd6d6395504d4ccda107d2a71a42
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.
doc/src/sgml/wal.sgml
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/storage/ipc/sinval.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/bin/psql/tab-complete.c
src/include/access/xlog.h
src/include/storage/proc.h
src/include/storage/sinval.h