"Just Someone" <just.some@xxxxxxxxx> 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 filename. It'd probably be better if we had a function to report this, but you can get along without one. regards, tom lane