Re: Always bump PG_CONTROL_VERSION? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Always bump PG_CONTROL_VERSION?
Date
Msg-id YJyJRqNoTsbxUb/H@paquier.xyz
Whole thread Raw
In response to Re: Always bump PG_CONTROL_VERSION?  (Andres Freund <andres@anarazel.de>)
Responses Re: Always bump PG_CONTROL_VERSION?
Re: Always bump PG_CONTROL_VERSION?
List 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

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Remove "FROM" in "DELETE FROM" when using tab-completion
Next
From: Michael Paquier
Date:
Subject: Re: Performance degradation of REFRESH MATERIALIZED VIEW