From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Tables(s) that feed pg_controldata
Date: Sun, 9 Dec 2018 20:10:57 -0600
Message-ID: <30d70181-bed1-9c33-f604-30d68d78dc2c@gmail.com> (raw)
In-Reply-To: <b9e0e7ca-25f8-f659-d904-4a01e4c25015@2ndquadrant.com>
References: <62c43250-70ad-479b-d3ef-9860114eba43@gmail.com>
<b9e0e7ca-25f8-f659-d904-4a01e4c25015@2ndquadrant.com>
On 12/09/2018 07:51 PM, Ian Barwick wrote:
> On 12/09/2018 01:25 AM, Ron wrote:
> >
> > In v9.2 (yes, I know it's EOL; there's nothing I can do about it), what
> tables
> > do I query to get these values, and can I also get them from the streamed
> > replication host?
> >
> > - Database cluster state
> > - Latest checkpoint location
> > - Time of latest checkpoint
>
> The pg_control file is written directly by PostgreSQL, it does not derive
> from
> any tables.
>
> From 9.6 there are a bunch of functions which will report values contained in
> pg_controldata:
>
> https://www.postgresql.org/docs/current/functions-info.html#FUNCTIONS-CONTROLDATA
>
> but you're out of luck for 9.2. The only option to query the desired
> values via
> SQL would be to write an extension which reads pg_controldata
> (possibly as a backport of the above-mentioned functions).
Thanks. grep(1) and cut(1) make an adequate work-around.
--
Angular momentum makes the world go 'round.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Tables(s) that feed pg_controldata
In-Reply-To: <30d70181-bed1-9c33-f604-30d68d78dc2c@gmail.com>
References: <62c43250-70ad-479b-d3ef-9860114eba43@gmail.com> <b9e0e7ca-25f8-f659-d904-4a01e4c25015@2ndquadrant.com> <30d70181-bed1-9c33-f604-30d68d78dc2c@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox