Hi, Thanks everyone for the reply, is it reasonable/advisable to start with the output of pg_stop_backup() in a shell script to find the WAL file being discussed, ie the FILE which can be used as a reference for removing the older files ? secondly , i was asking about the tool for copying the database directory not the one for archiving the logs. when i use tar , it gives warning that the file changed while it was reading the file, i need a tool that does not give warning for this kind of activity. Regds Rajesh Kumar Mallah. On 3/28/06, Tom Lane <tgl@xxxxxxxxxxxxx> wrote: > "Andy Shellam" <andy.shellam@xxxxxxxxxxxxxxxxx> writes: > > The DOCs say that filenames numerically less than the WAL record that > > pg_stop_backup() suggests can be removed. Will an alphabetical sorting > > be different from numerically sorted filename ? > > If you're worried about that, try "LANG=C ls ..." to make sure the > sorting is done in C locale. I don't know of any locales that would > sort hex numbers differently from C, but maybe there are some. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >