Add new Tuplesortstate.removeabbrev function
authorAlexander Korotkov <[email protected]>
Wed, 27 Jul 2022 05:27:29 +0000 (08:27 +0300)
committerAlexander Korotkov <[email protected]>
Wed, 27 Jul 2022 05:27:29 +0000 (08:27 +0300)
commitcadfdd1edff103d696bbfcdd126c2dee516aed9b
tree91bfa8d01af61358657bc7eb288d21760f3d6098
parentd47da3162b4d77c888c895dd36e4ef9cb92fcf19
Add new Tuplesortstate.removeabbrev function

This commit is the preparation to move abbreviation logic into
puttuple_common().  The new removeabbrev function turns datum1 representation
of SortTuple's from the abbreviated key to the first column value.  Therefore,
it encapsulates the differential part of abbreviation handling code in
tuplesort_put*() functions, making these functions similar.

Discussion: https://postgr.es/m/CAPpHfdvjix0Ahx-H3Jp1M2R%2B_74P-zKnGGygx4OWr%3DbUQ8BNdw%40mail.gmail.com
Author: Alexander Korotkov
Reviewed-by: Pavel Borisov, Maxim Orlov, Matthias van de Meent
Reviewed-by: Andres Freund, John Naylor
src/backend/utils/sort/tuplesort.c