mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Rename assorted LWLock tranches.
Choose names that fit into the conventions for wait event names (particularly, that multi-word names are in the style MultiWordName) and hopefully convey more information to non-hacker users than the previous names did. Also rename SerializablePredicateLockListLock to SerializablePredicateListLock; the old name was long enough to cause table formatting problems, plus the double occurrence of "Lock" seems confusing/error-prone. Also change a couple of particularly opaque LWLock field names. Discussion: https://postgr.es/m/28683.1589405363@sss.pgh.pa.us
This commit is contained in:
4
src/backend/utils/cache/typcache.c
vendored
4
src/backend/utils/cache/typcache.c
vendored
@ -256,7 +256,7 @@ static const dshash_parameters srtr_record_table_params = {
|
||||
sizeof(SharedRecordTableEntry),
|
||||
shared_record_table_compare,
|
||||
shared_record_table_hash,
|
||||
LWTRANCHE_SESSION_RECORD_TABLE
|
||||
LWTRANCHE_PER_SESSION_RECORD_TYPE
|
||||
};
|
||||
|
||||
/* Parameters for SharedRecordTypmodRegistry's typmod hash table. */
|
||||
@ -265,7 +265,7 @@ static const dshash_parameters srtr_typmod_table_params = {
|
||||
sizeof(SharedTypmodTableEntry),
|
||||
dshash_memcmp,
|
||||
dshash_memhash,
|
||||
LWTRANCHE_SESSION_TYPMOD_TABLE
|
||||
LWTRANCHE_PER_SESSION_RECORD_TYPMOD
|
||||
};
|
||||
|
||||
/* hashtable for recognizing registered record types */
|
||||
|
Reference in New Issue
Block a user