Skip to content

Commit 95b9c33

Browse files
committed
Further adjustment of comment about qsort_tuple.
1 parent a25ef7a commit 95b9c33

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/backend/utils/sort/tuplesort.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ struct Tuplesortstate
346346

347347
/*
348348
* This variable is shared by the single-key MinimalTuple case and the
349-
* Datum case. Otherwise it's NULL.
349+
* Datum case (which both use qsort_ssup()). Otherwise it's NULL.
350350
*/
351351
SortSupport onlyKey;
352352

@@ -500,8 +500,11 @@ static void reversedirection_datum(Tuplesortstate *state);
500500
static void free_sort_tuple(Tuplesortstate *state, SortTuple *stup);
501501

502502
/*
503-
* Special versions of qsort just for SortTuple objects. We have one for the
504-
* single-key case (qsort_ssup) and one for multi-key cases (qsort_tuple).
503+
* Special versions of qsort just for SortTuple objects. qsort_tuple() sorts
504+
* any variant of SortTuples, using the appropriate comparetup function.
505+
* qsort_ssup() is specialized for the case where the comparetup function
506+
* reduces to ApplySortComparator(), that is single-key MinimalTuple sorts
507+
* and Datum sorts.
505508
*/
506509
#include "qsort_tuple.c"
507510

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