As PostgreSQL numbers WALs sequentially, as long as your ls command by default orders listings by filename, then Yes. Or you could list by the last modified date/time should give the same effect.
Andy
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Sriram Dandapani Sent: Saturday, 25 March, 2006 12:30 am To: pgsql-admin@postgresql.org Subject: [ADMIN] WAL file naming convention
Hi
Is is safe to assume that the unix ls command will return WAL files in the same sequence as postgres creates them.
e.g will ls <wal-file-folder> return files in the order that postgres created them