pgsql: Split out tiebreaker comparisons from comparetup_* functions

Поиск
Список
Период
Сортировка
От John Naylor
Тема pgsql: Split out tiebreaker comparisons from comparetup_* functions
Дата
Msg-id E1qWDao-000POZ-Dp@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Split out tiebreaker comparisons from comparetup_* functions  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-committers
Split out tiebreaker comparisons from comparetup_* functions

Previously, if a specialized comparator found equal datum1 keys,
the "comparetup" function would repeat the comparison on the
datum before proceeding with the unabbreviated first key
and/or additional sort keys.

Move comparing additional sort keys into "tiebreak" functions so
that specialized comparators can call these directly if needed,
avoiding duplicate work.

Reviewed by David Rowley

Discussion: https://postgr.es/m/CAFBsxsGaVfUrjTghpf%3DkDBYY%3DjWx1PN-fuusVe7Vw5s0XqGdGw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c9bfa40914be4a0882b904834c2bd32775a50d7b

Modified Files
--------------
src/backend/utils/sort/tuplesort.c         |   9 +--
src/backend/utils/sort/tuplesortvariants.c | 125 ++++++++++++++++++++++-------
src/include/utils/tuplesort.h              |   7 ++
3 files changed, 108 insertions(+), 33 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: PG 16 relnotes, update "current as of" date
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Remove incorrect field from information schema