From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Reuse abbreviated keys in ordered [set] aggregates.
Date: Wed, 17 Feb 2016 10:12:46 +0000
Message-ID: <E1aVz6E-0006BN-43@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Reuse abbreviated keys in ordered [set] aggregates.
When processing ordered aggregates following a sort that could make use
of the abbreviated key optimization, only call the equality operator to
compare successive pairs of tuples when their abbreviated keys were not
equal.
Peter Geoghegan, reviewd by Andreas Karlsson and by me.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/f1f5ec1efafe74ca45e24e0bf3371b1d6985c8ee
Modified Files
--------------
src/backend/catalog/index.c | 2 +-
src/backend/executor/nodeAgg.c | 16 ++++++--
src/backend/executor/nodeSort.c | 2 +-
src/backend/utils/adt/orderedsetaggs.c | 33 ++++++++++-----
src/backend/utils/sort/tuplesort.c | 74 ++++++++++++++++++++++++----------
src/include/utils/tuplesort.h | 4 +-
6 files changed, 92 insertions(+), 39 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: rhaas@postgresql.org
Subject: Re: pgsql: Reuse abbreviated keys in ordered [set] aggregates.
In-Reply-To: <E1aVz6E-0006BN-43@gemulon.postgresql.org>
References: <E1aVz6E-0006BN-43@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