Skip to content

Commit 9155b4b

Browse files
committed
Do no reset bounded before incremental sort rescan
ExecReScanIncrementalSort was resetting bounded=false, which means the optimization would be disabled on all rescans. This happens because ExecSetTupleBound is called before the rescan, not after it. Author: James Coleman Reviewed-by: Tomas Vondra Discussion: https://postgr.es/m/20200414065336.GI1492@paquier.xyz
1 parent c442722 commit 9155b4b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/executor/nodeIncrementalSort.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,6 @@ ExecReScanIncrementalSort(IncrementalSortState *node)
11421142
if (node->transfer_tuple != NULL)
11431143
ExecClearTuple(node->transfer_tuple);
11441144

1145-
node->bounded = false;
11461145
node->outerNodeDone = false;
11471146
node->n_fullsort_remaining = 0;
11481147
node->bound_Done = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy