]> granicus.if.org Git - postgresql/commit
Remove RelationGetBufferWithBuffer(), which is horribly confused about
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2001 18:16:59 +0000 (18:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2001 18:16:59 +0000 (18:16 +0000)
commitbdadc9bf1c0900487c372f2403c7c064d177d68c
treea64acd263294e66f91b8f5868f083b75fb5c8507
parent32479891305bb80f428f189d48a1661dbe39d4f4
Remove RelationGetBufferWithBuffer(), which is horribly confused about
appropriate pin-count manipulation, and instead use ReleaseAndReadBuffer.
Make use of the fact that the passed-in buffer (if there is one) must
be pinned to avoid grabbing the bufmgr spinlock when we are able to
return this same buffer.  Eliminate unnecessary 'previous tuple' and
'next tuple' fields of HeapScanDesc and IndexScanDesc, thereby removing
a whole lot of bookkeeping from heap_getnext() and related routines.
src/backend/access/gist/gistscan.c
src/backend/access/heap/heapam.c
src/backend/access/index/genam.c
src/backend/access/rtree/rtscan.c
src/backend/storage/buffer/bufmgr.c
src/include/access/relscan.h
src/include/access/skey.h
src/include/storage/buf.h
src/include/storage/bufmgr.h