pgsql: Fix ReadBuffer() to correctly handle the case where it's trying

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix ReadBuffer() to correctly handle the case where it's trying
Date: 2006-01-06 00:04:21
Message-ID: 20060106000421.7DCF09DCA87@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix ReadBuffer() to correctly handle the case where it's trying to extend
the relation but it finds a pre-existing valid buffer. The buffer does not
correspond to any page known to the kernel, so we *must* do smgrextend to
ensure that the space becomes allocated. The 7.x branches all do this
correctly, but the corner case got lost somewhere during 8.0 bufmgr rewrites.
(My fault no doubt :-( ... I think I assumed that such a buffer must be
not-BM_VALID, which is not so.)

Modified Files:
--------------
pgsql/src/backend/storage/buffer:
bufmgr.c (r1.201 -> r1.202)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/buffer/bufmgr.c.diff?r1=1.201&r2=1.202)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-01-06 00:04:26 pgsql: Fix ReadBuffer() to correctly handle the case where it's trying
Previous Message Bruce Momjian 2006-01-05 17:47:54 pgsql: Add: > > * Allow SERIAL sequences to inherit permissions from