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: Cosmetic improvements for code related to partitionwise join.
Date: Fri, 03 Apr 2020 21:00:56 +0000
Message-ID: <E1jKTQu-0005fk-Qn@gemulon.postgresql.org> (raw)

Cosmetic improvements for code related to partitionwise join.

Move have_partkey_equi_join and match_expr_to_partition_keys to
relnode.c, since they're used only there.  Refactor
build_joinrel_partition_info to split out the code that fills the
joinrel's partition key lists; this doesn't have any non-cosmetic
impact, but it seems like a useful separation of concerns.
Improve assorted nearby comments.

Amit Langote, with a little further editorialization by me

Discussion: https://postgr.es/m/CA+HiwqG2WVUGmLJqtR0tPFhniO=H=9qQ+Z3L_ZC+Y3-EVQHFGg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0568e7a2a4f133a7c16776bcae92c53fcf247b73

Modified Files
--------------
src/backend/optimizer/path/joinrels.c | 168 --------------------
src/backend/optimizer/util/plancat.c  |  14 +-
src/backend/optimizer/util/relnode.c  | 279 +++++++++++++++++++++++++++++-----
src/include/nodes/pathnodes.h         |  53 ++++---
src/include/optimizer/paths.h         |   3 -
5 files changed, 283 insertions(+), 234 deletions(-)



Message-ID: <E1jKTQu-0005fk-Qn@gemulon.postgresql.org>
Permalink:  ../E1jKTQu-0005fk-Qn@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jKTQu-0005fk-Qn@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: Cosmetic improvements for code related to partitionwise join.
  In-Reply-To: <E1jKTQu-0005fk-Qn@gemulon.postgresql.org>
  References: <E1jKTQu-0005fk-Qn@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