From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Rethink representation of PathTargets.
Date: Mon, 14 Mar 2016 21:00:05 +0000
Message-ID: <E1afZav-0000z4-Mf@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Rethink representation of PathTargets.
In commit 19a541143a09c067 I did not make PathTarget a subtype of Node,
and embedded a RelOptInfo's reltarget directly into it rather than having
a separately-allocated Node. In hindsight that was misguided
micro-optimization, enabled by the fact that at that point we didn't have
any Paths with custom PathTargets. Now that PathTarget processing has
been fleshed out some more, it's easier to see that it's better to have
PathTarget as an indepedent Node type, even if it does cost us one more
palloc to create a RelOptInfo. So change it while we still can.
This commit just changes the representation, without doing anything more
interesting than that.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/307c78852f516042cebacaed411a0391bfeb2129
Modified Files
--------------
contrib/file_fdw/file_fdw.c | 4 +-
contrib/postgres_fdw/deparse.c | 4 +-
contrib/postgres_fdw/postgres_fdw.c | 10 ++---
doc/src/sgml/fdwhandler.sgml | 2 +-
src/backend/nodes/outfuncs.c | 46 +++++++++++-----------
src/backend/optimizer/path/allpaths.c | 22 +++++------
src/backend/optimizer/path/costsize.c | 20 +++++-----
src/backend/optimizer/path/indxpath.c | 8 ++--
src/backend/optimizer/plan/createplan.c | 2 +-
src/backend/optimizer/plan/initsplan.c | 4 +-
src/backend/optimizer/plan/planmain.c | 2 +-
src/backend/optimizer/plan/planner.c | 4 +-
src/backend/optimizer/util/pathnode.c | 44 ++++++++++-----------
src/backend/optimizer/util/placeholder.c | 14 +++----
src/backend/optimizer/util/relnode.c | 23 +++++------
src/backend/optimizer/util/tlist.c | 6 +--
src/include/nodes/nodes.h | 1 +
src/include/nodes/relation.h | 65 +++++++++++++++++---------------
18 files changed, 143 insertions(+), 138 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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Rethink representation of PathTargets.
In-Reply-To: <E1afZav-0000z4-Mf@gemulon.postgresql.org>
References: <E1afZav-0000z4-Mf@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