Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95b9c33

Browse files
committed
Further adjustment of comment about qsort_tuple.
1 parenta25ef7a commit95b9c33

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
SortSupportonlyKey;
352352

@@ -500,8 +500,11 @@ static void reversedirection_datum(Tuplesortstate *state);
500500
staticvoidfree_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)

[8]ページ先頭

©2009-2025 Movatter.jp