Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdadc9b

Browse files
committed
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) mustbe pinned to avoid grabbing the bufmgr spinlock when we are able toreturn this same buffer. Eliminate unnecessary 'previous tuple' and'next tuple' fields of HeapScanDesc and IndexScanDesc, thereby removinga whole lot of bookkeeping from heap_getnext() and related routines.
1 parent3247989 commitbdadc9b

File tree

9 files changed

+138
-551
lines changed

9 files changed

+138
-551
lines changed

‎src/backend/access/gist/gistscan.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/gist/gistscan.c,v 1.35 2001/05/31 18:16:54 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/gist/gistscan.c,v 1.36 2001/06/09 18:16:55 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -83,13 +83,8 @@ gistrescan(PG_FUNCTION_ARGS)
8383
/*
8484
* Clear all the pointers.
8585
*/
86-
87-
ItemPointerSetInvalid(&s->previousItemData);
8886
ItemPointerSetInvalid(&s->currentItemData);
89-
ItemPointerSetInvalid(&s->nextItemData);
90-
ItemPointerSetInvalid(&s->previousMarkData);
9187
ItemPointerSetInvalid(&s->currentMarkData);
92-
ItemPointerSetInvalid(&s->nextMarkData);
9388

9489
/*
9590
* Set flags.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp