From: Jerry Sievers <gsievers19@comcast.net>
To: 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: Fri, 04 Jan 2019 20:41:35 -0600
Message-ID: <87zhsfzuzk.fsf@jsievers.enova.com> (raw)
In-Reply-To: <CAMa1XUgf+53v9=ER55o5nPMaAnN1zNVCQ5s_3zCpe6YT=sQW=w@mail.gmail.com>
References: <CAMa1XUgf+53v9=ER55o5nPMaAnN1zNVCQ5s_3zCpe6YT=sQW=w@mail.gmail.com>
Jeremy Finzel <finzelj@gmail.com> writes:
> I am having a hard time finding out how I can easily determine at
> which LSN a streamer was promoted after promotion. A related
> question is that if I pause wal replay, I am able to see the last
> replayed LSN but I can't simply immediately promote.
Take a look at the *.history file in pg_xlog or pg_wal.
> I want to know the state of the streamer post-promotion with respect
> to the master by getting the LSN at which it was promoted.
>
> Thanks,
> Jeremy
>
>
--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
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: gsievers19@comcast.net, finzelj@gmail.com
Subject: Re: Get LSN at which a cluster was promoted on previous timeline
In-Reply-To: <87zhsfzuzk.fsf@jsievers.enova.com>
References: <CAMa1XUgf+53v9=ER55o5nPMaAnN1zNVCQ5s_3zCpe6YT=sQW=w@mail.gmail.com> <87zhsfzuzk.fsf@jsievers.enova.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