From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow executor startup pruning to prune all child nodes.
Date: Wed, 11 Dec 2019 22:05:42 +0000
Message-ID: <E1ifA74-0001le-Do@gemulon.postgresql.org> (raw)
Allow executor startup pruning to prune all child nodes.
Previously, if the startup pruning logic proved that all child nodes
of an Append or MergeAppend could be pruned, we still kept one, just
to keep EXPLAIN from failing. The previous commit removed the
ruleutils.c limitation that required this kluge, so drop it. That
results in less-confusing EXPLAIN output, as per a complaint from
Yuzuko Hosoya.
David Rowley
Discussion: https://postgr.es/m/001001d4f44b$2a2cca50$7e865ef0$@lab.ntt.co.jp
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5935917ce59e2e613ac7a4b54ed49a7b9f8f28ac
Modified Files
--------------
src/backend/executor/nodeAppend.c | 42 ++++----------
src/backend/executor/nodeMergeAppend.c | 30 ++--------
src/include/nodes/execnodes.h | 3 -
src/test/regress/expected/partition_prune.out | 83 ++++++++++++++-------------
src/test/regress/sql/partition_prune.sql | 15 +++--
5 files changed, 69 insertions(+), 104 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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Allow executor startup pruning to prune all child nodes.
In-Reply-To: <E1ifA74-0001le-Do@gemulon.postgresql.org>
References: <E1ifA74-0001le-Do@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