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/gist/gistscan.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/gist/gistscan.c')
-rw-r--r-- | src/backend/access/gist/gistscan.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/access/gist/gistscan.c b/src/backend/access/gist/gistscan.c index 9ffbd038982..362b489dac0 100644 --- a/src/backend/access/gist/gistscan.c +++ b/src/backend/access/gist/gistscan.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/gist/gistscan.c,v 1.35 2001/05/31 18:16:54 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/gist/gistscan.c,v 1.36 2001/06/09 18:16:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -83,13 +83,8 @@ gistrescan(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. |