pgsql/src/backend/access/heap (heapam.c)

From: tgl(at)postgresql(dot)org
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/access/heap (heapam.c)
Date: 2001-01-07 22:14:32
Message-ID: 200101072214.f07MEWQ43804@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Sunday, January 7, 2001 @ 17:14:31
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/backend/access/heap
from hub.org:/home/projects/pgsql/tmp/cvs-serv43799

Modified Files:
heapam.c

----------------------------- Log Message -----------------------------

Correct nasty error in heap_update: it was releasing the buffer refcount
before calling RelationInvalidateHeapTuple(), which is bad because the
latter needs to look at the tuple data, which is in the shared disk
buffer. If another backend manages to recycle the buffer while this
is going on, we will compute the wrong hashindex for the tuple or
maybe even crash outright. Must hold buffer refcount until afterwards.
(This bug is not in 7.0.*; seems to be have introduced during WAL changes.)

Browse pgsql-committers by date

  From Date Subject
Next Message tgl 2001-01-08 00:31:44 pgsql/src/backend/nodes (outfuncs.c readfuncs.c)
Previous Message tgl 2001-01-07 04:30:41 pgsql/src/backend/storage/ipc (ipc.c)