mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Revert removal of trace_userlocks, because userlocks aren't gone.
This reverts commit 0180bd6180.
contrib/userlock is gone, but user-level locking still exists,
and is exposed via the pg_advisory* family of functions.
This commit is contained in:
@@ -213,7 +213,12 @@ static const LockMethodData user_lockmethod = {
|
||||
AccessExclusiveLock, /* highest valid lock mode number */
|
||||
true,
|
||||
LockConflicts,
|
||||
lock_mode_names
|
||||
lock_mode_names,
|
||||
#ifdef LOCK_DEBUG
|
||||
&Trace_userlocks
|
||||
#else
|
||||
&Dummy_trace
|
||||
#endif
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -271,6 +276,7 @@ static ResourceOwner awaitedOwner;
|
||||
|
||||
int Trace_lock_oidmin = FirstNormalObjectId;
|
||||
bool Trace_locks = false;
|
||||
bool Trace_userlocks = false;
|
||||
int Trace_lock_table = 0;
|
||||
bool Debug_deadlocks = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user