pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Minor additional refactoring of planner.c's PathTarget handling.
Date: Fri, 11 Mar 2016 15:25:12 +0000
Message-ID: <E1aeOwC-0002Fe-2z@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Minor additional refactoring of planner.c's PathTarget handling.

Teach make_group_input_target() and make_window_input_target() to work
entirely with the PathTarget representation of tlists, rather than
constructing a tlist and immediately deconstructing it into PathTarget
format.  In itself this only saves a few palloc's; the bigger picture is
that it opens the door for sharing cost_qual_eval work across all of
planner.c's constructions of PathTargets.  I'll come back to that later.

In support of this, flesh out tlist.c's infrastructure for PathTargets
a bit more.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/49635d7b3e86c0088eadd80db1563a210bc89efd

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 126 +++++++++++++++++------------------
src/backend/optimizer/util/tlist.c   |  46 +++++++++++++
src/include/optimizer/tlist.h        |   3 +
3 files changed, 111 insertions(+), 64 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1aeOwC-0002Fe-2z@gemulon.postgresql.org>
Permalink:  ../E1aeOwC-0002Fe-2z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1aeOwC-0002Fe-2z@gemulon.postgresql.org

 · 

reply

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: Minor additional refactoring of planner.c's PathTarget handling.
  In-Reply-To: <E1aeOwC-0002Fe-2z@gemulon.postgresql.org>
  References: <E1aeOwC-0002Fe-2z@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