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: Compute root->qual_security_level in a less random place.
Date: Sun, 31 Mar 2019 17:47:49 +0000
Message-ID: <E1hAeYf-0000lM-JM@gemulon.postgresql.org> (raw)

Compute root->qual_security_level in a less random place.

We can set this up once and for all in subquery_planner's initial survey
of the flattened rangetable, rather than incrementally adjusting it in
build_simple_rel.  The previous approach made it rather hard to reason
about exactly when the value would be available, and we were definitely
using it in some places before the final value was computed.

Noted while fooling around with Amit Langote's patch to delay creation
of inheritance child rels.  That didn't break this code, but it made it
even more fragile, IMO.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9fd4de119c609b4110eea74f00f7b9002e14aa38

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 10 ++++++++++
src/backend/optimizer/util/relnode.c | 11 -----------
2 files changed, 10 insertions(+), 11 deletions(-)



Message-ID: <E1hAeYf-0000lM-JM@gemulon.postgresql.org>
Permalink:  ../E1hAeYf-0000lM-JM@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hAeYf-0000lM-JM@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: Compute root->qual_security_level in a less random place.
  In-Reply-To: <E1hAeYf-0000lM-JM@gemulon.postgresql.org>
  References: <E1hAeYf-0000lM-JM@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