From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Ildus Kurbangaliev <i(dot)kurbangaliev(at)postgrespro(dot)ru>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
Subject: | Re: [PATCH] Refactoring of LWLock tranches |
Date: | 2015-11-19 19:58:05 |
Message-ID: | CA+TgmoaGh9qwCLNdg4KTa_xtn27n7GAxBV3Z9XJ-Zq88-Po9XA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Nov 19, 2015 at 11:30 AM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> On November 19, 2015 8:09:38 AM PST, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>On Thu, Nov 19, 2015 at 9:04 AM, Ildus Kurbangaliev
>><i(dot)kurbangaliev(at)postgrespro(dot)ru> wrote:
>>> The moving base tranches to shared memory has been discussed many
>>times.
>>> The point is using them later in pg_stat_activity and other
>>monitoring
>>> views.
>>
>>I'm not in agreement with this idea. Actually, I'd prefer that the
>>tranches live in backend-private memory, not shared memory, so that we
>>could for example add backend-local counters to them if desired.
>
> I don't buy that argument. It'd be nearly trivial to have a backend_tranchestats array, indexed by the tranche id, for such counters.
Hmm, true.
> It's really not particularly convenient to allocate tranches right now. You have to store at least the identifier in shared memory and then redo the registration in each process. Otherwise some processes can't identify them. Which of rather inconvenient of you want to register some at runtime
Sure, that's why we're proposing to use an enum or a list of #defines
for that. I don't see a need to do any more than that.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2015-11-19 20:12:57 | Re: Using quicksort for every external sort run |
Previous Message | Robert Haas | 2015-11-19 19:55:39 | Re: [DESIGN] ParallelAppend |