Re: Always bump PG_CONTROL_VERSION?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Always bump PG_CONTROL_VERSION?
Дата
Msg-id YJyJRqNoTsbxUb/H@paquier.xyz
обсуждение исходный текст
Ответ на Re: Always bump PG_CONTROL_VERSION?  (Andres Freund <andres@anarazel.de>)
Ответы Re: Always bump PG_CONTROL_VERSION?  (Julien Rouhaud <rjuju123@gmail.com>)
Re: Always bump PG_CONTROL_VERSION?  (Jan Wieck <jan@wi3ck.info>)
Список pgsql-hackers
On Wed, May 12, 2021 at 01:30:27PM -0700, Andres Freund wrote:
> That said, I don't think it's a good practice to use the control file
> version as an identifier for the major version. Who knows, it might be
> necessary to add an optional new format in a minor version at some point
> or such crazyness. And then there's the beta stuff you'd mentioned, etc.

Yes, PG_VERSION, as you wrote upthread already, is already fine for
the job, and FWIW, I have yet to see a case where being able to easily
detect the minor version in a data folder matters.

And, I am of the opinion to not change the control file version if
there is no need to do so.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Remove "FROM" in "DELETE FROM" when using tab-completion
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Performance degradation of REFRESH MATERIALIZED VIEW