From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cosmetic improvements in setup of planner's per-RTE arrays.
Date: Fri, 09 Aug 2019 16:33:49 +0000
Message-ID: <E1hw7pt-0006rv-Li@gemulon.postgresql.org> (raw)
Cosmetic improvements in setup of planner's per-RTE arrays.
Merge setup_append_rel_array into setup_simple_rel_arrays. There's no
particularly good reason to keep them separate, and it's inconsistent
with the lack of separation in expand_planner_arrays. The only apparent
benefit was that the fast path for trivial queries in query_planner()
doesn't need to set up the append_rel_array; but all we're saving there
is an if-test and NULL assignment, which surely ought to be negligible.
Also improve some obsolete comments.
Discussion: https://postgr.es/m/17220.1565301350@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1661a4050593a472c369a6660ffec05b6b837c57
Modified Files
--------------
src/backend/optimizer/plan/planmain.c | 10 +------
src/backend/optimizer/prep/prepunion.c | 8 +----
src/backend/optimizer/util/relnode.c | 53 ++++++++++++++++++----------------
src/include/nodes/pathnodes.h | 9 +++---
src/include/optimizer/pathnode.h | 1 -
5 files changed, 34 insertions(+), 47 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: Cosmetic improvements in setup of planner's per-RTE arrays.
In-Reply-To: <E1hw7pt-0006rv-Li@gemulon.postgresql.org>
References: <E1hw7pt-0006rv-Li@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