pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Postpone generate_gather_paths for topmost scan/join rel.
Date: Thu, 29 Mar 2018 19:46:18 +0000
Message-ID: <E1f1dV4-0006hc-SQ@gemulon.postgresql.org> (raw)

Postpone generate_gather_paths for topmost scan/join rel.

Don't call generate_gather_paths for the topmost scan/join relation
when it is initially populated with paths.  Instead, do the work in
grouping_planner.  By itself, this gains nothing; in fact it loses
slightly because we end up calling set_cheapest() for the topmost
scan/join rel twice rather than once.  However, it paves the way for
a future commit which will postpone generate_gather_paths for the
topmost scan/join relation even further, allowing more accurate
costing of parallel paths.

Amit Kapila and Robert Haas.  Earlier versions of this patch (which
different substantially) were reviewed by Dilip Kumar, Amit
Khandekar, Marina Polyakova, and Ashutosh Bapat.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f90ec8597c3515e0d3190613b31491686027e4b

Modified Files
--------------
src/backend/optimizer/geqo/geqo_eval.c | 21 ++++++++++++++-------
src/backend/optimizer/path/allpaths.c  | 26 +++++++++++++++++++-------
src/backend/optimizer/plan/planner.c   |  9 +++++++++
3 files changed, 42 insertions(+), 14 deletions(-)



Message-ID: <E1f1dV4-0006hc-SQ@gemulon.postgresql.org>
Permalink:  ../E1f1dV4-0006hc-SQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f1dV4-0006hc-SQ@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: Postpone generate_gather_paths for topmost scan/join rel.
  In-Reply-To: <E1f1dV4-0006hc-SQ@gemulon.postgresql.org>
  References: <E1f1dV4-0006hc-SQ@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