pgsql: Ensure that we validate the page header of the first page of a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Ensure that we validate the page header of the first page of a
Date: 2006-04-20 04:07:39
Message-ID: 20060420040739.7F88611F6648@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Ensure that we validate the page header of the first page of a WAL file
whenever we start to read within that file. The first page carries
extra identification information that really ought to be checked, but
as the code stood, this was only checked when we switched sequentially
into a new WAL file, or if by chance the starting checkpoint record was
within the first page. This patch ensures that we will detect bogus
'long header' information before we start replaying the WAL sequence.

Modified Files:
--------------
pgsql/src/backend/access/transam:
xlog.c (r1.236 -> r1.237)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xlog.c.diff?r1=1.236&r2=1.237)

Browse pgsql-committers by date

  From Date Subject
Next Message User Shachar 2006-04-20 07:49:45 oledb - oledb: Treat non-wide error messages as UTF-8.
Previous Message Tom Lane 2006-04-19 23:11:15 pgsql: Recognize __ppc64__, which seems to be Apple's spelling of the