diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-09 18:16:59 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-09 18:16:59 +0000 |
commit | bdadc9bf1c0900487c372f2403c7c064d177d68c (patch) | |
tree | a64acd263294e66f91b8f5868f083b75fb5c8507 /src/backend/access/rtree/rtscan.c | |
parent | 32479891305bb80f428f189d48a1661dbe39d4f4 (diff) | |
download | postgresql-bdadc9bf1c0900487c372f2403c7c064d177d68c.tar.gz postgresql-bdadc9bf1c0900487c372f2403c7c064d177d68c.zip |
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.
Diffstat (limited to 'src/backend/access/rtree/rtscan.c')
-rw-r--r-- | src/backend/access/rtree/rtscan.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/access/rtree/rtscan.c b/src/backend/access/rtree/rtscan.c index f3e6d52fe67..c9f1ab7b893 100644 --- a/src/backend/access/rtree/rtscan.c +++ b/src/backend/access/rtree/rtscan.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.36 2001/03/22 03:59:16 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtscan.c,v 1.37 2001/06/09 18:16:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -85,13 +85,8 @@ rtrescan(PG_FUNCTION_ARGS) /* * Clear all the pointers. */ - - ItemPointerSetInvalid(&s->previousItemData); ItemPointerSetInvalid(&s->currentItemData); - ItemPointerSetInvalid(&s->nextItemData); - ItemPointerSetInvalid(&s->previousMarkData); ItemPointerSetInvalid(&s->currentMarkData); - ItemPointerSetInvalid(&s->nextMarkData); /* * Set flags. |