Re: Always bump PG_CONTROL_VERSION?

From: David Steele <david(at)pgmasters(dot)net>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Always bump PG_CONTROL_VERSION?
Date: 2021-05-12 20:00:49
Message-ID: 7c9ce1d2-9d9d-be54-43c6-bef237b3a2ac@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/12/21 3:21 PM, Alvaro Herrera wrote:
> On 2021-May-12, David Steele wrote:
>
>> pgBackRest uses PG_CONTROL_VERSION to identify the version of PostgreSQL
>> when it is not running. If PG_CONTROL_VERSION does not change from a prior
>> version then we also use CATALOG_VERSION_NO to uniquely identify the
>> version.
>
> Why don't you use the PG_VERSION file in the datadir?

Mostly because there is other data we need in pg_control and it is
simpler to read one file than two.

Regards,
--
-David
david(at)pgmasters(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michail Nikolaev 2021-05-12 20:12:09 Re: [PATCH] Full support for index LP_DEAD hint bits on standby
Previous Message Robert Haas 2021-05-12 19:58:57 Re: Granting control of SUSET gucs to non-superusers