From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Avoid projecting tuples unnecessarily in Gather and Gather Merge
Date: Sat, 25 Nov 2017 15:55:11 +0000
Message-ID: <E1eIcnP-0002X3-E4@gemulon.postgresql.org> (raw)
Avoid projecting tuples unnecessarily in Gather and Gather Merge.
It's most often the case that the target list for the Gather (Merge)
node matches the target list supplied by the underlying plan node;
when this is so, we can avoid the overhead of projecting.
This depends on commit f455e1125e2588d4cd4fc663c6a10da4e003a3b5 for
proper functioning.
Idea by Andres Freund. Patch by me. Review by Amit Kapila.
Discussion: http://postgr.es/m/CA+TgmoZ0ZL=cesZFq8c9NnfK6bqy-wwUd3_74iYGodYrSoQ7Fw@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b10967eddf964f8c0a11060cf3f366bbdd1235f6
Modified Files
--------------
src/backend/executor/execScan.c | 75 ++-----------------------------
src/backend/executor/execUtils.c | 80 ++++++++++++++++++++++++++++++++++
src/backend/executor/nodeGather.c | 16 ++++---
src/backend/executor/nodeGatherMerge.c | 24 +++++-----
src/include/executor/executor.h | 2 +
5 files changed, 110 insertions(+), 87 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: rhaas@postgresql.org
Subject: Re: pgsql: Avoid projecting tuples unnecessarily in Gather and Gather Merge
In-Reply-To: <E1eIcnP-0002X3-E4@gemulon.postgresql.org>
References: <E1eIcnP-0002X3-E4@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