pgsql: Awhile back I added some code to StartupCLOG() to forcibly zero

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Awhile back I added some code to StartupCLOG() to forcibly zero
Date: 2004-12-22 18:46:09
Message-ID: 20041222184609.8FC4C3ABC62@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Awhile back I added some code to StartupCLOG() to forcibly zero out
the remainder of the current clog page during system startup. While
this was a good idea, it turns out the code fails if nextXid is
exactly at a page boundary, because we won't have created the "current"
clog page yet in that case. Since the page will be correctly zeroed
when we execute the first transaction on it, the solution is just to
do nothing when exactly at a page boundary. Per trouble report from
Dave Hartwig.

Modified Files:
--------------
pgsql/src/backend/access/transam:
clog.c (r1.26 -> r1.27)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/clog.c.diff?r1=1.26&r2=1.27)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-12-23 00:03:28 pgsql: Remove extra parenthesis.
Previous Message Bruce Momjian 2004-12-22 02:17:55 pgsql: Add mention that pg_ctl will return an accurate exit code when