Re: Reducing connection overhead in pg_upgrade compat check phase

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Reducing connection overhead in pg_upgrade compat check phase
Дата
Msg-id B3988905-E675-4F1C-BAE0-7918E7B56548@yesql.se
обсуждение исходный текст
Ответ на Re: Reducing connection overhead in pg_upgrade compat check phase  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: Reducing connection overhead in pg_upgrade compat check phase  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
> On 8 Feb 2024, at 15:16, Daniel Gustafsson <daniel@yesql.se> wrote:

> One option could perhaps be to include a version number for <= comparison, and
> if set to zero a function pointer to a version check function must be provided?
> That would handle the simple cases in a single place without messy logic, and
> leave the more convoluted checks with a special case function.

The attached is a draft version of this approach, each check can define to run
for all versions, set a threshold version for which it runs or define a
callback which implements a more complicated check.

--
Daniel Gustafsson


Вложения

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

Предыдущее
От: Maiquel Grassi
Дата:
Сообщение: RE: Psql meta-command conninfo+
Следующее
От: Peter Smith
Дата:
Сообщение: Re: Make documentation builds reproducible