[PATCH] Refactoring of LWLock tranches

Поиск
Список
Период
Сортировка
От Ildus Kurbangaliev
Тема [PATCH] Refactoring of LWLock tranches
Дата
Msg-id 3F71DA37-A17B-4961-9908-016E6323E612@postgrespro.ru
обсуждение исходный текст
Ответы Re: [PATCH] Refactoring of LWLock tranches  ("andres@anarazel.de" <andres@anarazel.de>)
Список pgsql-hackers
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 <robertmhaas@gmail.com> wrote:

On Tue, Sep 1, 2015 at 6:43 PM, andres@anarazel.de <andres@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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: misc typofixes
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: track_commit_timestamp and COMMIT PREPARED