Re: Determining current WAL - Mailing list pgsql-admin

From Tom Lane
Subject Re: Determining current WAL
Date
Msg-id 7183.1108654412@sss.pgh.pa.us
Whole thread Raw
In response to Determining current WAL  (thomas.revell@powerconv.alstom.com)
Responses Re: Determining current WAL  (Gaetano Mendola <mendola@bigfoot.com>)
List pgsql-admin
thomas.revell@powerconv.alstom.com writes:
> I'm currently looking at using WAL / PITR backups for a database, and I
> need to keep the backups as up to date as possible. As such, keeping a
> copy of the current WAL file, as suggested in the manual, would seem to be
> a very good idea. I'm slightly confused, though, about which file is the
> current. I had assumed that it would always be the highest numbered,

No.  Go with the most-recently-modified.  Segment files are normally
created (or renamed into place) in advance of being needed.

There should probably be a cleaner/more reliable way of identifying
the active file ...

            regards, tom lane

pgsql-admin by date:

Previous
From: Gourish Singbal
Date:
Subject: ERROR: 40P01:
Next
From: Tom Lane
Date:
Subject: Re: ERROR: 40P01: