pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add new Tuplesortstate.removeabbrev function
Date: Wed, 27 Jul 2022 05:29:21 +0000
Message-ID: <E1oGZbk-001RJv-Ff@gemulon.postgresql.org> (raw)

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

Branch
------
master

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

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 137 ++++++++++++++++++++++++-------------
1 file changed, 89 insertions(+), 48 deletions(-)



Message-ID: <E1oGZbk-001RJv-Ff@gemulon.postgresql.org>
Permalink:  ../E1oGZbk-001RJv-Ff@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oGZbk-001RJv-Ff@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org
  Subject: Re: pgsql: Add new Tuplesortstate.removeabbrev function
  In-Reply-To: <E1oGZbk-001RJv-Ff@gemulon.postgresql.org>
  References: <E1oGZbk-001RJv-Ff@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox