mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-18 20:36:58 +08:00
Make all built-in lwlock tranche IDs fixed.
This makes the values more stable, which seems like a good thing for anybody who needs to look at at them. Alexander Korotkov and Amit Kapila
This commit is contained in:
@ -210,9 +210,17 @@ extern void LWLockInitialize(LWLock *lock, int tranche_id);
|
||||
typedef enum BuiltinTrancheIds
|
||||
{
|
||||
LWTRANCHE_MAIN,
|
||||
LWTRANCHE_CLOG_BUFFERS,
|
||||
LWTRANCHE_COMMITTS_BUFFERS,
|
||||
LWTRANCHE_SUBTRANS_BUFFERS,
|
||||
LWTRANCHE_MXACTOFFSET_BUFFERS,
|
||||
LWTRANCHE_MXACTMEMBER_BUFFERS,
|
||||
LWTRANCHE_ASYNC_BUFFERS,
|
||||
LWTRANCHE_OLDSERXID_BUFFERS,
|
||||
LWTRANCHE_WAL_INSERT,
|
||||
LWTRANCHE_BUFFER_CONTENT,
|
||||
LWTRANCHE_BUFFER_IO_IN_PROGRESS,
|
||||
LWTRANCHE_REPLICATION_ORIGIN,
|
||||
LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS,
|
||||
LWTRANCHE_PROC,
|
||||
LWTRANCHE_FIRST_USER_DEFINED
|
||||
|
||||
Reference in New Issue
Block a user