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

Commit73dd716

Browse files
committed
Small performance improvement in comparetup_heap.
1 parent8cb8da3 commit73dd716

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

‎src/backend/utils/sort/tuplesort.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
* Portions Copyright (c) 1994, Regents of the University of California
7979
*
8080
* IDENTIFICATION
81-
* $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplesort.c,v 1.6 2000/02/18 06:32:30 tgl Exp $
81+
* $Header: /cvsroot/pgsql/src/backend/utils/sort/tuplesort.c,v 1.7 2000/03/01 17:14:09 tgl Exp $
8282
*
8383
*-------------------------------------------------------------------------
8484
*/
@@ -1632,20 +1632,16 @@ comparetup_heap(Tuplesortstate *state, const void *a, const void *b)
16321632
for (nkey=0;nkey<state->nKeys;nkey++)
16331633
{
16341634
ScanKeyscanKey=state->scanKeys+nkey;
1635+
AttrNumberattno=scanKey->sk_attno;
16351636
Datumlattr,
16361637
rattr;
16371638
boolisnull1,
16381639
isnull2;
16391640
intresult;
16401641

1641-
lattr=heap_getattr(ltup,
1642-
scanKey->sk_attno,
1643-
tupDesc,
1644-
&isnull1);
1645-
rattr=heap_getattr(rtup,
1646-
scanKey->sk_attno,
1647-
tupDesc,
1648-
&isnull2);
1642+
lattr=heap_getattr(ltup,attno,tupDesc,&isnull1);
1643+
rattr=heap_getattr(rtup,attno,tupDesc,&isnull2);
1644+
16491645
if (isnull1)
16501646
{
16511647
if (!isnull2)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp