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: Don't generate parallel paths for rels with parallel-restricted
Date: Thu, 09 Jun 2016 16:43:49 +0000
Message-ID: <E1bB33d-0003Gv-VZ@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Don't generate parallel paths for rels with parallel-restricted outputs.

Such paths are unsafe.  To make it cheaper to detect when this case
applies, track whether a relation's default PathTarget contains any
non-Vars.  In most cases, the answer will be no, which enables us to
determine cheaply that the target list for a proposed path is
parallel-safe.  However, subquery pull-up can create cases that
require us to inspect the target list more carefully.

Amit Kapila, reviewed by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b12fd41c695b43c76b0a9a4d19ba43b05536440c

Modified Files
--------------
src/backend/nodes/outfuncs.c             |  1 +
src/backend/optimizer/path/allpaths.c    | 10 ++++++++++
src/backend/optimizer/util/placeholder.c |  2 ++
src/backend/optimizer/util/relnode.c     | 10 +++++++---
src/include/nodes/relation.h             |  2 ++
5 files changed, 22 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (16+ messages)  latest in thread

Message-ID: <E1bB33d-0003Gv-VZ@gemulon.postgresql.org>
Permalink:  ../E1bB33d-0003Gv-VZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bB33d-0003Gv-VZ@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: Don't generate parallel paths for rels with parallel-restricted
  In-Reply-To: <E1bB33d-0003Gv-VZ@gemulon.postgresql.org>
  References: <E1bB33d-0003Gv-VZ@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