Re: Buffer access rules, and a probable bug - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: Buffer access rules, and a probable bug
Date
Msg-id 3B413BBE.B8A75184@tpf.co.jp
Whole thread Raw
In response to Buffer access rules, and a probable bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: Buffer access rules, and a probable bug
List pgsql-hackers
Tom Lane wrote:
> 
> I have been making some notes about the rules for accessing shared disk
> buffers, since they aren't spelled out anywhere now AFAIK.  In process
> I found what seems to be a nasty bug in the code that tries to build
> btree indexes that include already-dead tuples.  (If memory serves,
> Hiroshi added that code awhile back to help suppress the "heap tuples
> != index tuples" complaint from VACUUM.)
> 

[snip]

> 
> I believe that nbtree.c's btbuild() code is currently in violation of
> these rules, because it calls HeapTupleSatisfiesNow() while holding a
> pin but no lock on the containing buffer.

OK, we had better avoid using heapam routines in btbuild() ? 

regards,

Hiroshi Inoue


pgsql-hackers by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: Re: New data type: uniqueidentifier
Next
From: Mariano Kamp
Date:
Subject: JDBC Support - prepared Statements?