Re: Catalog version access - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: Catalog version access
Date
Msg-id 58A2BF44-855D-466F-91CC-8355AF581707@amazon.com
Whole thread Raw
In response to Re: Catalog version access  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Catalog version access  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On 4/8/21, 2:58 AM, "Magnus Hagander" <magnus@hagander.net> wrote:
> Another option could be to provide a switch to the postmaster binary.
> Using pg_config as originally suggested is risky because you might
> pick up the wrong postmaster, but if you put it on the actual
> postmaster binary you certainly know which one you're on... As this is
> something that's primarily of interest to developers, it's also a bit
> lower weight than having a "heavy" solution like an entire mode for
> pg_ctl.

I was looking at the --check switch for the postgres binary recently
[0], and this sounds like something that might fit in nicely there.
In the attached patch, --check will also check the control file if one
exists.

Nathan

[0] https://postgr.es/m/0545F7B3-70C0-4DE8-8C85-EAFE6113B7EE%40amazon.com


Attachment

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: The Free Space Map: Problems and Opportunities
Next
From: Daniel Gustafsson
Date:
Subject: Re: Emit namespace in post-copy output