mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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;
|
||||
|
||||
|
@ -20,7 +20,7 @@ INTENTIONALLY_NOT_INCLUDED="autocommit debug_deadlocks \
|
||||
is_superuser lc_collate lc_ctype lc_messages lc_monetary lc_numeric lc_time \
|
||||
pre_auth_delay role seed server_encoding server_version server_version_int \
|
||||
session_authorization trace_lock_oidmin trace_lock_table trace_locks trace_lwlocks \
|
||||
trace_notify transaction_isolation transaction_read_only \
|
||||
trace_notify trace_userlocks transaction_isolation transaction_read_only \
|
||||
zero_damaged_pages"
|
||||
|
||||
### What options are listed in postgresql.conf.sample, but don't appear
|
||||
|
@ -1060,6 +1060,16 @@ static struct config_bool ConfigureNamesBool[] =
|
||||
false,
|
||||
NULL, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"trace_userlocks", PGC_SUSET, DEVELOPER_OPTIONS,
|
||||
gettext_noop("No description available."),
|
||||
NULL,
|
||||
GUC_NOT_IN_SAMPLE
|
||||
},
|
||||
&Trace_userlocks,
|
||||
false,
|
||||
NULL, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"trace_lwlocks", PGC_SUSET, DEVELOPER_OPTIONS,
|
||||
gettext_noop("No description available."),
|
||||
|
@ -34,6 +34,7 @@ extern int max_locks_per_xact;
|
||||
#ifdef LOCK_DEBUG
|
||||
extern int Trace_lock_oidmin;
|
||||
extern bool Trace_locks;
|
||||
extern bool Trace_userlocks;
|
||||
extern int Trace_lock_table;
|
||||
extern bool Debug_deadlocks;
|
||||
#endif /* LOCK_DEBUG */
|
||||
|
Reference in New Issue
Block a user