From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: HashAgg: before spilling tuples, set unneeded columns to NULL.
Date: Mon, 13 Jul 2020 06:14:04 +0000
Message-ID: <E1jurj2-0003qs-1V@gemulon.postgresql.org> (raw)
HashAgg: before spilling tuples, set unneeded columns to NULL.
This is a replacement for 4cad2534. Instead of projecting all tuples
going into a HashAgg, only remove unnecessary attributes when actually
spilling. This avoids the regression for the in-memory case.
Discussion: https://postgr.es/m/a2fb7dfeb4f50aa0a123e42151ee3013933cb802.camel%40j-davis.com
Backpatch-through: 13
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/d8a7ce245095e3a70a2ad738c17be95593f68996
Modified Files
--------------
src/backend/executor/nodeAgg.c | 123 ++++++++++++++++++++++++++++++-----------
src/include/nodes/execnodes.h | 8 ++-
2 files changed, 96 insertions(+), 35 deletions(-)
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: jdavis@postgresql.org
Subject: Re: pgsql: HashAgg: before spilling tuples, set unneeded columns to NULL.
In-Reply-To: <E1jurj2-0003qs-1V@gemulon.postgresql.org>
References: <E1jurj2-0003qs-1V@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