pgsql/src/backend/access/heap (heapam.c) - Mailing list pgsql-committers

From tgl@postgresql.org
Subject pgsql/src/backend/access/heap (heapam.c)
Date
Msg-id 200101072214.f07MEWQ43804@hub.org
Whole thread Raw
List 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.)


pgsql-committers by date:

Previous
From: tgl@postgresql.org
Date:
Subject: pgsql/src/backend/storage/ipc (ipc.c)
Next
From: tgl@postgresql.org
Date:
Subject: pgsql/src/backend/nodes (outfuncs.c readfuncs.c)