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@lists.postgresql.org
Subject: pgsql: Relocate partition pruning structs to a saner place.
Date: Sun, 10 Jun 2018 20:30:29 +0000
Message-ID: <E1fS6yr-0000Z0-QX@gemulon.postgresql.org> (raw)

Relocate partition pruning structs to a saner place.

These struct definitions were originally dropped into primnodes.h,
which is a poor choice since that's mainly intended for primitive
expression node types; these are not in that category.  What they
are is auxiliary info in Plan trees, so move them to plannodes.h.

For consistency, also relocate some related code that was apparently
placed with the aid of a dartboard.

There's no interesting code changes in this commit, just reshuffling.

David Rowley and Tom Lane

Discussion: https://postgr.es/m/CAFj8pRBjrufA3ocDm8o4LPGNye9Y+pm1b9kCwode4X04CULG3g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/939449de0e571b8c0b07674bb7095e06e93cc059

Modified Files
--------------
src/backend/executor/execPartition.c    |   2 +-
src/backend/nodes/copyfuncs.c           | 124 ++++++++++++++++----------------
src/backend/nodes/outfuncs.c            | 124 ++++++++++++++++----------------
src/backend/nodes/readfuncs.c           | 110 ++++++++++++++--------------
src/backend/optimizer/plan/createplan.c |   2 +-
src/include/nodes/nodes.h               |   7 +-
src/include/nodes/plannodes.h           | 114 +++++++++++++++++++++++++++--
src/include/nodes/primnodes.h           | 104 ---------------------------
8 files changed, 294 insertions(+), 293 deletions(-)



Message-ID: <E1fS6yr-0000Z0-QX@gemulon.postgresql.org>
Permalink:  ../E1fS6yr-0000Z0-QX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fS6yr-0000Z0-QX@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: Relocate partition pruning structs to a saner place.
  In-Reply-To: <E1fS6yr-0000Z0-QX@gemulon.postgresql.org>
  References: <E1fS6yr-0000Z0-QX@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