On Fri, 2005-09-30 at 09:29 -0700, Jeff Frost wrote:
> On Fri, 30 Sep 2005, Simon Riggs wrote:
> > You don't say why you need to know?
> Not sure why Kris needs to know, but I need to know for PITR and keeping the
> latest WAL file saved by a script which runs every few minutes as my client
> does not turn over WAL files very often (about 4/day).
> > If you really care, you can look at the status files in the
> > archive_status directory underneath pg_xlog. This is where the archiver
> > checks to see for notifications of filled WAL files, then clears the
> > notification afterwards. Only filled WAL filenames are shown.
> I see lots of items like this:
> I presume these correlate with the files in the pg_xlog directory that look
> like so:
> Given that list, does that mean that 0000000100000013000000DF is the in use
> WAL file?
If I follow your example, yes. But that assumes there is only one
timeline's WAL files in your pg_xlog. It could get more complex in that
situation because you could be in any of the timelines.
But, if you know which timeline you're in, then yes, the file after the
latest file in archive_status is the current WAl file.
It might be interesting to submit your script to put into contrib?
Best Regards, Simon Riggs
In response to
pgsql-admin by date
|Next:||From: ||Date: 2005-10-01 07:59:53|
|Subject: Postgresql 8.0.3 installation problem on WinXP SP2|
|Previous:||From: taso||Date: 2005-09-30 19:41:34|
|Subject: HP Openview|