Re: [GENERAL] How to find the latest (partial) WAL file

2006-04-10 Thread Thomas F. O'Connell
On Apr 10, 2006, at 6:24 PM, Tom Lane wrote: "Just Someone" <[EMAIL PROTECTED]> writes: Is there a way to discover what is the real current WAL file? If you sort first by mtime and second by file name you should find the right one in all cases, ie, take the latest mtime among the properly-na

Re: [GENERAL] How to find the latest (partial) WAL file

2006-04-10 Thread Just Someone
Hi Tom, > If you sort first by mtime and second by file name you should find the > right one in all cases, ie, take the latest mtime among the > properly-named files, breaking ties by taking the higher filename. > > It'd probably be better if we had a function to report this, but > you can get alo

Re: [GENERAL] How to find the latest (partial) WAL file

2006-04-10 Thread Tom Lane
"Just Someone" <[EMAIL PROTECTED]> writes: > Is there a way to discover what is the real current WAL file? If you sort first by mtime and second by file name you should find the right one in all cases, ie, take the latest mtime among the properly-named files, breaking ties by taking the higher fil

[GENERAL] How to find the latest (partial) WAL file

2006-04-10 Thread Just Someone
What is the best way to find the latest partial WAL file? Based on my tests, using the mtime isn't 100% accurate, as if a pg_start_backup/pg_stop_backup() operation is run, the .backup file created might be newer than the last WAL file. It also seems that the WAL file related to the backup is bein