Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c7683b0

Browse files
committed
do not sort result with gettuple interface if there is no orderby clause
1 parent 544bbdb commit c7683b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rumscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ rumNewScanKey(IndexScanDesc scan)
436436
haofHasAddToRestriction = 0x02
437437
} hasAddOnFilter = haofNone;
438438

439-
so->naturalOrder = false;
439+
so->naturalOrder = (scan->numberOfOrderBys > 0) ? false : true;
440440

441441
/*
442442
* Allocate all the scan key information in the key context. (If

0 commit comments

Comments
 (0)