pgsql-server: Add a check on file size as an additional safety check

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Add a check on file size as an additional safety check
Date: 2004-07-22 20:18:41
Message-ID: 20040722201841.740A9D1B17B@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql-server/src/backend/access/transam:
xlog.c (r1.150 -> r1.151)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/access/transam/xlog.c.diff?r1=1.150&r2=1.151)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-07-22 21:09:37 pgsql-server: Add cross-check that current timeline of pg_control is an
Previous Message Bruce Momjian 2004-07-22 12:24:13 pgsql-server: Updated wording: > * Have psql show current values for a