Re: Reducing connection overhead in pg_upgrade compat check phase

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Reducing connection overhead in pg_upgrade compat check phase
Дата
Msg-id 1FE28680-333E-433C-9809-95662037B0AA@yesql.se
обсуждение исходный текст
Ответ на Re: Reducing connection overhead in pg_upgrade compat check phase  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: Reducing connection overhead in pg_upgrade compat check phase  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
> On 11 Jul 2023, at 01:09, Nathan Bossart <nathandbossart@gmail.com> wrote:
> On Mon, Jul 10, 2023 at 04:43:23PM +0200, Daniel Gustafsson wrote:

>>> +static int    n_data_types_usage_checks = 7;
>>>
>>> Can we determine this programmatically so that folks don't need to remember
>>> to update it?
>>
>> Fair point, I've added a counter loop to the beginning of the check function to
>> calculate it.
>
> +    /* Gather number of checks to perform */
> +    while (tmp->status != NULL)
> +        n_data_types_usage_checks++;
>
> I think we need to tmp++ somewhere here.

Yuk, yes, will fix when caffeinated. Thanks.

--
Daniel Gustafsson




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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: doc: improve the restriction description of using indexes on REPLICA IDENTITY FULL table.
Следующее
От: Jacob Champion
Дата:
Сообщение: Re: [PoC] Federated Authn/z with OAUTHBEARER