Hello hackers!
This patch contains LWLocks changes from pg_stat_activity thread
and I think it deserves a separate thread.

The goal is to split LWLocks from one array to logical pieces (with separate
tranches) for better monitoring and debug purposes. Each type of LWLock
will have its own tranche and a associated name.

I fixed problems with EXEC_BACKEND. Another parts require a some discussion so 
I didn't touch them yet.

On Sep 2, 2015, at 9:45 PM, Robert Haas <robertmh...@gmail.com> wrote:

On Tue, Sep 1, 2015 at 6:43 PM, and...@anarazel.de <and...@anarazel.de> wrote:
Why a new tranche for each of these? And it can't be correct that each
has the same base?

I complained about the same-base problem before.  Apparently, that got ignored.


The idea to create an individual tranches for individual LWLocks have
come from Heikki Linnakangas and I also think that tranche is a good place to keep
LWLock name. Base of these tranches points to MainLWLockArray and T_ID
macros keeps the old behavior for them. But I don't insist on the current implementation
here.

----
Ildus Kurbangaliev
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

Attachment: lwlock_tranches_refactor.patch
Description: Binary data

Reply via email to