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: Set consider_parallel correctly for upper planner rels.
Date: Fri, 01 Jul 2016 15:53:23 +0000
Message-ID: <E1bJ0kt-0003DJ-DM@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Set consider_parallel correctly for upper planner rels.

Commit 3fc6e2d7f5b652b417fa6937c34de2438d60fa9f introduced new "upper"
RelOptInfo structures but didn't set consider_parallel for them
correctly, a point I completely missed when reviewing it.  Later,
commit e06a38965b3bcdaa881e7e06892d4d8ab6c2c980 made the situation
worse by doing it incorrectly for the grouping relation.  Try to
straighten all of that out.  Along the way, get rid of the annoying
wholePlanParallelSafe flag, which was only necessarily because of
the fact that upper planning stages didn't use paths at the time
that code was written.

The most important immediate impact of these changes is that
force_parallel_mode will provide useful test coverage in quite a few
more scenarios than it did previously, but it's also necessary
preparation for fixing some problems related to subqueries.

Patch by me, reviewed by Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5ce5e4a12ee7175cd3fc356d9d38307e1d715827

Modified Files
--------------
src/backend/nodes/outfuncs.c             |   1 -
src/backend/optimizer/plan/createplan.c  |   4 -
src/backend/optimizer/plan/planner.c     | 201 ++++++++++++++++---------------
src/backend/optimizer/util/pathnode.c    |  13 +-
src/include/nodes/relation.h             |   4 +-
src/test/regress/expected/aggregates.out |   7 ++
src/test/regress/sql/aggregates.sql      |   8 ++
7 files changed, 132 insertions(+), 106 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: <E1bJ0kt-0003DJ-DM@gemulon.postgresql.org>
Permalink:  ../E1bJ0kt-0003DJ-DM@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bJ0kt-0003DJ-DM@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: Set consider_parallel correctly for upper planner rels.
  In-Reply-To: <E1bJ0kt-0003DJ-DM@gemulon.postgresql.org>
  References: <E1bJ0kt-0003DJ-DM@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