Skip to content

Commit 2673ebf

Browse files
committed
Remove redundant setting of tuplesort status
Also add an explanatory comment to match other similar coding within tuplesort_performsort(). Xing Guo Reviewed by Richard Guo and Cary Huang Discussion: https://www.postgresql.org/message-id/CACpMh%2BAQ4GXRKKi9ib2ioUH%2BqwNaSAVbetssJ0tMPfxAWuL2yg%40mail.gmail.com
1 parent c06caa0 commit 2673ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/sort/tuplesort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,13 +1439,13 @@ tuplesort_performsort(Tuplesortstate *state)
14391439
* We were able to accumulate all the tuples required for output
14401440
* in memory, using a heap to eliminate excess tuples. Now we
14411441
* have to transform the heap to a properly-sorted array.
1442+
* Note that sort_bounded_heap sets the correct state->status.
14421443
*/
14431444
sort_bounded_heap(state);
14441445
state->current = 0;
14451446
state->eof_reached = false;
14461447
state->markpos_offset = 0;
14471448
state->markpos_eof = false;
1448-
state->status = TSS_SORTEDINMEM;
14491449
break;
14501450

14511451
case TSS_BUILDRUNS:

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