pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Assorted preparatory refactoring for partition-wise join.
Date: Tue, 15 Aug 2017 16:33:01 +0000
Message-ID: <E1dhem5-0003B2-JJ@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Assorted preparatory refactoring for partition-wise join.

Instead of duplicating the logic to search for a matching
ParamPathInfo in multiple places, factor it out into a separate
function.

Pass only the relevant bits of the PartitionKey to
partition_bounds_equal instead of the whole thing, because
partition-wise join will want to call this without having a
PartitionKey available.

Adjust allow_star_schema_join and calc_nestloop_required_outer
to take relevant Relids rather than the entire Path, because
partition-wise join will want to call it with the top-parent
relids to determine whether a child join is allowable.

Ashutosh Bapat.  Review and testing of the larger patch set of which
this is a part by Amit Langote, Rajkumar Raghuwanshi, Rafia Sabih,
Thomas Munro, Dilip Kumar, and me.

Discussion: http://postgr.es/m/CA+TgmobQK80vtXjAsPZWWXd7c8u13G86gmuLupN+uUJjA+i4nA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e139f1953f29db245f60a7acb72fccb1e05d2442

Modified Files
--------------
src/backend/catalog/partition.c       |  9 ++++---
src/backend/optimizer/path/joinpath.c | 27 +++++++++++----------
src/backend/optimizer/util/pathnode.c | 11 +++++----
src/backend/optimizer/util/relnode.c  | 45 ++++++++++++++++++++---------------
src/backend/utils/cache/relcache.c    |  4 +++-
src/include/catalog/partition.h       |  5 ++--
src/include/optimizer/pathnode.h      |  7 +++++-
7 files changed, 62 insertions(+), 46 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: <E1dhem5-0003B2-JJ@gemulon.postgresql.org>
Permalink:  ../E1dhem5-0003B2-JJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dhem5-0003B2-JJ@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: rhaas@postgresql.org
  Subject: Re: pgsql: Assorted preparatory refactoring for partition-wise join.
  In-Reply-To: <E1dhem5-0003B2-JJ@gemulon.postgresql.org>
  References: <E1dhem5-0003B2-JJ@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