From: Michael Paquier <michael@paquier.xyz>
To: Jerry Sievers <gsievers19@comcast.net>
Cc: Jeremy Finzel <finzelj@gmail.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: Get LSN at which a cluster was promoted on previous timeline
Date: Sat, 5 Jan 2019 12:54:42 +0900
Message-ID: <20190105035442.GI4849@paquier.xyz> (raw)
In-Reply-To: <87zhsfzuzk.fsf@jsievers.enova.com>
References: <CAMa1XUgf+53v9=ER55o5nPMaAnN1zNVCQ5s_3zCpe6YT=sQW=w@mail.gmail.com>
<87zhsfzuzk.fsf@jsievers.enova.com>
On Fri, Jan 04, 2019 at 08:41:35PM -0600, Jerry Sievers wrote:
> Take a look at the *.history file in pg_xlog or pg_wal.
These files are also archived. If you want to be able to see such
contents at SQL level, you would need some parsing logic like this one
for example which is a toy of mine (this comes mainly from
rewind_parseTimeLineHistory() if I recall correctly):
https://github.com/michaelpq/pg_plugins/tree/master/wal_utils
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, gsievers19@comcast.net, finzelj@gmail.com
Subject: Re: Get LSN at which a cluster was promoted on previous timeline
In-Reply-To: <20190105035442.GI4849@paquier.xyz>
References: <CAMa1XUgf+53v9=ER55o5nPMaAnN1zNVCQ5s_3zCpe6YT=sQW=w@mail.gmail.com> <87zhsfzuzk.fsf@jsievers.enova.com> <20190105035442.GI4849@paquier.xyz>
* 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