mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Provide much better wait information in pg_stat_activity.
When a process is waiting for a heavyweight lock, we will now indicate the type of heavyweight lock for which it is waiting. Also, you can now see when a process is waiting for a lightweight lock - in which case we will indicate the individual lock name or the tranche, as appropriate - or for a buffer pin. Amit Kapila, Ildus Kurbangaliev, reviewed by me. Lots of helpful discussion and suggestions by many others, including Alexander Korotkov, Vladimir Borodin, and many others.
This commit is contained in:
@@ -187,6 +187,8 @@ extern Size LWLockShmemSize(void);
|
||||
extern void CreateLWLocks(void);
|
||||
extern void InitLWLockAccess(void);
|
||||
|
||||
extern const char *GetLWLockIdentifier(uint8 classId, uint16 eventId);
|
||||
|
||||
/*
|
||||
* Extensions (or core code) can obtain an LWLocks by calling
|
||||
* RequestNamedLWLockTranche() during postmaster startup. Subsequently,
|
||||
|
||||
Reference in New Issue
Block a user