Re: Tracking wait event for latches

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Tracking wait event for latches
Дата
Msg-id CAB7nPqSTGdnObStPV6dGzVB3jHXgRm4R=mPC48whKPGDGzWHFg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Tracking wait event for latches  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Tue, Aug 23, 2016 at 12:44 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Mon, Aug 22, 2016 at 9:49 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>> The reason why I chose this way is that there are a lot of them. It is
>> painful to maintain the order of the array elements in perfect mapping
>> with the list of IDs...
>
> You can use stupid macro tricks to help with that problem...

Yeah, still after thinking about it I think I would just go with an
array like lock types and be done with it. With a comment to mention
that the order should be respected things would be enough...
-- 
Michael



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: WAL consistency check facility
Следующее
От: Ryan Murphy
Дата:
Сообщение: Re: Patch: initdb: "'" for QUOTE_PATH (non-windows)