]> granicus.if.org Git - postgresql/commit
Add a check on file size as an additional safety check that a WAL file
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Jul 2004 20:18:40 +0000 (20:18 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Jul 2004 20:18:40 +0000 (20:18 +0000)
commit3dba9cb694070829ccf132fe69195ad9203cc73b
tree0ea15473abbaebf986ece99d0db8144eb3d9f3c0
parent406e8aa294755bec6d36a345f5afb5c5d0b96f08
Add a check on file size as an additional safety check that a WAL file
recovered from archive is not corrupt.  It's not much but it will catch
one common problem, viz out-of-disk-space.
Also, force a WAL recovery scan when recovery.conf is present, even if
pg_control shows a clean shutdown.  This allows recovery with a tar backup
that was taken with the postmaster shut down, as per complaint from
Mark Kirkwood.
src/backend/access/transam/xlog.c