Thread: pgsql: Only recycle normal files in pg_xlog as WAL segments.

pgsql: Only recycle normal files in pg_xlog as WAL segments.

From
heikki@postgresql.org (Heikki Linnakangas)
Date:
Log Message:
-----------
Only recycle normal files in pg_xlog as WAL segments. pg_standby creates
symbolic links with the -l option, and as Fujii Masao pointed out we ended up
overwriting files in the archive directory before this patch. Patch by
Aidan Van Dyk, Fujii Masao and me.

Backpatch to 8.3, where pg_standby was introduced.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xlog.c (r1.341 -> r1.342)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c?r1=1.341&r2=1.342)