Re: Determining the WAL file needed by a standby - Mailing list pgsql-admin

From Jaime Casanova
Subject Re: Determining the WAL file needed by a standby
Date
Msg-id AANLkTimLNgGEFE3DVmo0EniBOt-u11kS7pu2cO7F=aCn@mail.gmail.com
Whole thread Raw
In response to Determining the WAL file needed by a standby  ("Nicholson, Brad (Toronto, ON, CA)" <bnicholson@hp.com>)
List pgsql-admin
On Wed, Feb 9, 2011 at 3:37 PM, Nicholson, Brad (Toronto, ON, CA)
<bnicholson@hp.com> wrote:
> Hi,
>
> Once I’ve shut down a streaming replica standby, is there a way from the
> master I can tell which WAL file is going to be the earliest one needed in
> order for the replica to catch back up?
>

that info is on the standby, you need to execute pg_controldata on the
standby and read the Latest checkpoint location, IIRC...
then, from that you can now what the segment you need is, but you have
to look for it on the master

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte y capacitación de PostgreSQL

pgsql-admin by date:

Previous
From: Jim Mlodgenski
Date:
Subject: Re: Postgres on NAS/NFS
Next
From: Sam Stearns
Date:
Subject: Perl Libraries and Postgres