Re: Switch to multi-inserts for pg_depend

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Switch to multi-inserts for pg_depend
Дата
Msg-id 9519B099-7AB6-44A1-9365-B912AE7D2FC6@yesql.se
обсуждение исходный текст
Ответ на Re: Switch to multi-inserts for pg_depend  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Switch to multi-inserts for pg_depend
Список pgsql-hackers
> On 3 Sep 2020, at 07:35, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Tue, Sep 01, 2020 at 11:53:36AM +0200, Daniel Gustafsson wrote:
>> On 14 Aug 2020, at 20:23, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
>>
>>> The logic to keep track number of used slots used is baroque, though -- that
>>> could use a lot of simplification.
>>
>> What if slot_init was an integer which increments together with the loop
>> variable until max_slots is reached?  If so, maybe it should be renamed
>> slot_init_count and slotCount renamed slot_stored_count to make the their use
>> clearer?
>
> Good idea, removing slot_init looks like a good thing for readability.
> And the same can be done for pg_shdepend.

I think this version is a clear improvement.  Nothing more sticks out from a
read-through.

cheers ./daniel


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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: extension patch of CREATE OR REPLACE TRIGGER
Следующее
От: Michael Paquier
Дата:
Сообщение: Making index_set_state_flags() transactional