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@postgresql.org
Subject: pgsql: Remove reltarget_has_non_vars flag.
Date: Fri, 10 Jun 2016 20:20:12 +0000
Message-ID: <E1bBSua-0004xy-AW@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Remove reltarget_has_non_vars flag.

Commit b12fd41c6 added a "reltarget_has_non_vars" field to RelOptInfo,
but failed to maintain it accurately.  Since its only purpose was to skip
calls to has_parallel_hazard() in the simple case where a rel's targetlist
is all Vars, and that call is really pretty cheap in that case anyway, it
seems like this is just a case of premature optimization.  Let's drop the
flag and do the calls unconditionally until it's proven that we need more
smarts here.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3303ea1a327b41d3b406d7be7a5ce2901e561066

Modified Files
--------------
src/backend/nodes/outfuncs.c             | 1 -
src/backend/optimizer/path/allpaths.c    | 9 +++------
src/backend/optimizer/util/placeholder.c | 2 --
src/backend/optimizer/util/relnode.c     | 5 +----
src/include/nodes/relation.h             | 2 --
5 files changed, 4 insertions(+), 15 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: <E1bBSua-0004xy-AW@gemulon.postgresql.org>
Permalink:  ../E1bBSua-0004xy-AW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bBSua-0004xy-AW@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: Remove reltarget_has_non_vars flag.
  In-Reply-To: <E1bBSua-0004xy-AW@gemulon.postgresql.org>
  References: <E1bBSua-0004xy-AW@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