pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ian Barwick <ian.barwick@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Tables(s) that feed pg_controldata
Date: Mon, 10 Dec 2018 09:35:43 -0500
Message-ID: <23175.1544452543@sss.pgh.pa.us> (raw)
In-Reply-To: <cf0c9039-feb5-2a83-4a92-4d8c0725fd5d@2ndquadrant.com>
References: <62c43250-70ad-479b-d3ef-9860114eba43@gmail.com>
	<b9e0e7ca-25f8-f659-d904-4a01e4c25015@2ndquadrant.com>
	<30d70181-bed1-9c33-f604-30d68d78dc2c@gmail.com>
	<20181210025029.GB1105@paquier.xyz>
	<cf0c9039-feb5-2a83-4a92-4d8c0725fd5d@2ndquadrant.com>

Ian Barwick <ian.barwick@2ndquadrant.com> writes:
> On 12/10/2018 11:50 AM, Michael Paquier wrote:
>> Perhaps.  Even with that, writing an extension for 9.2 would require
>> copy-pasting a lot of code from pg_controldata.c and taking as well the
>> code which has been introduced for the various control functions.
>> Dirty, still doable. 

> I've got some code which does just that to read pg_control as far
> back as 9.3, and it is indeed not pretty ;).

If I had to do this pre-9.6, I'd write a function in an untrusted PL
that invoked pg_controldata and parsed its output.  Ugly, but short
and easy to port across versions.

			regards, tom lane




view thread (7+ messages)

Message-ID: <23175.1544452543@sss.pgh.pa.us>
Permalink:  ../23175.1544452543@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23175.1544452543@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, ian.barwick@2ndquadrant.com, michael@paquier.xyz, ronljohnsonjr@gmail.com
  Subject: Re: Tables(s) that feed pg_controldata
  In-Reply-To: <23175.1544452543@sss.pgh.pa.us>
  References: <62c43250-70ad-479b-d3ef-9860114eba43@gmail.com> <b9e0e7ca-25f8-f659-d904-4a01e4c25015@2ndquadrant.com> <30d70181-bed1-9c33-f604-30d68d78dc2c@gmail.com> <20181210025029.GB1105@paquier.xyz> <cf0c9039-feb5-2a83-4a92-4d8c0725fd5d@2ndquadrant.com> <23175.1544452543@sss.pgh.pa.us>

* 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