Commit 95b9c333 authored by Tom Lane's avatar Tom Lane

Further adjustment of comment about qsort_tuple.

parent a25ef7a5
...@@ -346,7 +346,7 @@ struct Tuplesortstate ...@@ -346,7 +346,7 @@ struct Tuplesortstate
/* /*
* This variable is shared by the single-key MinimalTuple case and the * This variable is shared by the single-key MinimalTuple case and the
* Datum case. Otherwise it's NULL. * Datum case (which both use qsort_ssup()). Otherwise it's NULL.
*/ */
SortSupport onlyKey; SortSupport onlyKey;
...@@ -500,8 +500,11 @@ static void reversedirection_datum(Tuplesortstate *state); ...@@ -500,8 +500,11 @@ static void reversedirection_datum(Tuplesortstate *state);
static void free_sort_tuple(Tuplesortstate *state, SortTuple *stup); static void free_sort_tuple(Tuplesortstate *state, SortTuple *stup);
/* /*
* Special versions of qsort just for SortTuple objects. We have one for the * Special versions of qsort just for SortTuple objects. qsort_tuple() sorts
* single-key case (qsort_ssup) and one for multi-key cases (qsort_tuple). * any variant of SortTuples, using the appropriate comparetup function.
* qsort_ssup() is specialized for the case where the comparetup function
* reduces to ApplySortComparator(), that is single-key MinimalTuple sorts
* and Datum sorts.
*/ */
#include "qsort_tuple.c" #include "qsort_tuple.c"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment