Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zbz20-0003q9-Ka for pgsql-committers@arkaria.postgresql.org; Tue, 15 Sep 2015 22:48:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zbz20-0001U1-1k for pgsql-committers@arkaria.postgresql.org; Tue, 15 Sep 2015 22:48:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zbz1z-0001Ta-An for pgsql-committers@postgresql.org; Tue, 15 Sep 2015 22:48:55 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zbz1x-0006PJ-04 for pgsql-committers@postgresql.org; Tue, 15 Sep 2015 22:48:54 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 27F405F79F; Tue, 15 Sep 2015 18:48:52 -0400 (EDT) Date: Tue, 15 Sep 2015 18:48:52 -0400 From: Stephen Frost To: Tom Lane Cc: Alvaro Herrera , pgsql-committers@postgresql.org Subject: Re: pgsql: RLS refactoring Message-ID: <20150915224851.GD3685@tamriel.snowman.net> References: <22678.1442348981@sss.pgh.pa.us> <20150915220002.GB3685@tamriel.snowman.net> <20150915221655.GK88970@alvherre.pgsql> <27213.1442356184@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="X2pySjZOu28v3e1K" Content-Disposition: inline In-Reply-To: <27213.1442356184@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 18:42:21 up 42 days, 7:12, 3 users, load average: 0.14, 0.11, 0.08 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org --X2pySjZOu28v3e1K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Alvaro Herrera 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. >=20 > > 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? >=20 > 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 --X2pySjZOu28v3e1K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJV+KBTAAoJEO1sijiDR2RVOygP/2P6FW1oEJHtt/M8zl2701uv LXUuRs2SVXhQp+BW7BmFtaCPJkbB30vn34BdDv6QW2gTaIxlQLfgULveHyjlwJW2 cbJ64TdMoXB3qHtZWUaR7U97Rt+1U3fq/aJDT7s9wcLE1bzBwZnGiZ0wGa+QgKg1 wZC2y80Sntc6HTvtnXenztJwwRsKdzw+0Xh6eqLILp26DY1mMaUA6BY4JzSKuuDq o6Y4Q1qXQ7F2Sns2iWnSJBttWlCa07OWQojm2o3F3XL8c8nm4yDNjI7b2uLZnExt m8JqGj6Hsc2xZS4dCXlMU2MH+6sm70CdneK/Z0B+6js6NMw2HAOqvTmr1RVd24XA 9L5P1/d91isTv7VrV8/TW59xANBCpinPeZs6s4s/kE/8teA0v9ugEmNwmV+EQe5v 2Qpu0UAfOYkGkgCnSLFU4hzfXQ1Kok09t8IkGI1nMS+HLnUqD9+jToD2pkigPSX0 qLB3fr/0hI/UWs9yH9Obzvcb2gZa3kf4X3GxsW6iWtQE+L176u3IInGwJ/fUJAvy Qa9asgldi1r31/iR7Tl8LFBT4GFVNc3z/+1hFNPCCdjSqau0W5jxUJpLXcRSDR/n pX3e2XVHXyrFYNfoMJShGsOmWgjEPzXNxdA/1MpleM0GK4U8yWj40BaDbr8ZBjgx cBztmstgH8BivUJUkqIE =GOti -----END PGP SIGNATURE----- --X2pySjZOu28v3e1K--