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

Commit88e9482

Browse files
committed
Nest macros with slightly less enthusiasm, for performance and to avoid
having non-gcc compilers spit up.
1 parent2a6f7ac commit88e9482

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 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/gist.c,v 1.78 2001/05/31 18:16:54 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.79 2001/06/11 05:00:56 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1370,8 +1370,10 @@ gistchoose(Relation r, Page p, IndexTuple it,/* it has compressed entry */
13701370
for (i=FirstOffsetNumber;i <=maxoff&&sum_grow;i=OffsetNumberNext(i))
13711371
{
13721372
sum_grow=0;
1373-
for(j=0;j<r->rd_att->natts;j++ ) {
1374-
datum=index_getattr( (IndexTuple)PageGetItem(p,PageGetItemId(p,i)),j+1,r->rd_att,&IsNull);
1373+
for (j=0;j<r->rd_att->natts;j++) {
1374+
IndexTupleitup= (IndexTuple)PageGetItem(p,PageGetItemId(p,i));
1375+
1376+
datum=index_getattr(itup,j+1,r->rd_att,&IsNull);
13751377
gistdentryinit(giststate,j,&entry,datum,r,p,i,ATTSIZE(datum,r,j+1,IsNull ), FALSE);
13761378
FunctionCall3(&giststate->penaltyFn[j],
13771379
PointerGetDatum(&entry),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp