From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: RLS refactoring
Date: Tue, 15 Sep 2015 18:48:52 -0400
Message-ID: <20150915224851.GD3685@tamriel.snowman.net> (raw)
In-Reply-To: <27213.1442356184@sss.pgh.pa.us>
References: <E1ZbwEg-0004Ct-Qc@gemulon.postgresql.org>
<22678.1442348981@sss.pgh.pa.us>
<20150915220002.GB3685@tamriel.snowman.net>
<20150915221655.GK88970@alvherre.pgsql>
<27213.1442356184@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > Stephen Frost wrote:
> >> The WithCheckOption node which was changed doesn't ever end up in the
> >> catalog, I don't believe; certainly not in pg_policy which just stores
> >> the expressions which come from transformWhereClause, which haven't
> >> changed.
>
> > Uhm, so why is it in readfuncs.c? If you create a view "WITH CHECK
> > OPTION", the pg_rewrite row says ":withCheckOptions <>". Does that not
> > change with your commit?
>
> That field would always be NIL in a query produced by the parser;
Right.
> it's only ever filled by the rewriter. But if this is documented
> anywhere, I couldn't find it, and the placement of the field in struct
> Query seems designed to be as confusing as possible about that. I'd have
> put it down near the end myself, and certainly have documented that it is
> NOT the parse-time representation of a WITH CHECK OPTION clause. For that
> matter I don't even find it to be named very well, because it's impossible
> to avoid that impression with the name as-is. Perhaps something like
> insertedCheckClauses would have been better.
Agreed. I will see about improving on that situation with at least
documentation changes. If we want to remove it completely then we'd
need to bump catversion.. Not against doing that if we want to though.
Might be better that way.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: sfrost@snowman.net, tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com
Subject: Re: pgsql: RLS refactoring
In-Reply-To: <20150915224851.GD3685@tamriel.snowman.net>
References: <E1ZbwEg-0004Ct-Qc@gemulon.postgresql.org> <22678.1442348981@sss.pgh.pa.us> <20150915220002.GB3685@tamriel.snowman.net> <20150915221655.GK88970@alvherre.pgsql> <27213.1442356184@sss.pgh.pa.us> <20150915224851.GD3685@tamriel.snowman.net>
* 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