mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Implement new 'lightweight lock manager' that's intermediate between
existing lock manager and spinlocks: it understands exclusive vs shared lock but has few other fancy features. Replace most uses of spinlocks with lightweight locks. All remaining uses of spinlocks have very short lock hold times (a few dozen instructions), so tweak spinlock backoff code to work efficiently given this assumption. All per my proposal on pghackers 26-Sep-01.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* Support for grand unified configuration scheme, including SET
|
||||
* command, configuration file, and command line options.
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.52 2001/09/23 21:52:36 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.53 2001/09/29 04:02:25 tgl Exp $
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
@ -240,7 +240,7 @@ static struct config_bool
|
||||
#ifdef LOCK_DEBUG
|
||||
{"trace_locks", PGC_SUSET, &Trace_locks, false, NULL},
|
||||
{"trace_userlocks", PGC_SUSET, &Trace_userlocks, false, NULL},
|
||||
{"trace_spinlocks", PGC_SUSET, &Trace_spinlocks, false, NULL},
|
||||
{"trace_lwlocks", PGC_SUSET, &Trace_lwlocks, false, NULL},
|
||||
{"debug_deadlocks", PGC_SUSET, &Debug_deadlocks, false, NULL},
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user