Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbyGm-000243-P7 for pgsql-committers@arkaria.postgresql.org; Tue, 15 Sep 2015 22:00:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbyGm-0001Ot-1l for pgsql-committers@arkaria.postgresql.org; Tue, 15 Sep 2015 22:00:08 +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 1ZbyGl-0001OV-C0 for pgsql-committers@postgresql.org; Tue, 15 Sep 2015 22:00:07 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZbyGh-0005Rf-M4 for pgsql-committers@postgresql.org; Tue, 15 Sep 2015 22:00:05 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id DAF425F79F; Tue, 15 Sep 2015 18:00:02 -0400 (EDT) Date: Tue, 15 Sep 2015 18:00:02 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: RLS refactoring Message-ID: <20150915220002.GB3685@tamriel.snowman.net> References: <22678.1442348981@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DDVzwrm+FWlZjJBm" Content-Disposition: inline In-Reply-To: <22678.1442348981@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: 17:39:53 up 42 days, 6:10, 3 users, load average: 0.01, 0.04, 0.05 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 --DDVzwrm+FWlZjJBm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > RLS refactoring >=20 > It looks to me like this changed the representation of stored rules, so it > should have included a catversion bump. This is particularly relevant to > the 9.5 branch where people already have alpha installations. I had considererd if a bump was needed and figured it wasn't. 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. I don't mind doing a bump if we feel it's necessary and maybe I'm missing that there's a way to cause that node type to end up in the catalog, but I don't think so, as we only ever build WithCheckOption nodes in the rewriter. Thanks! Stephen --DDVzwrm+FWlZjJBm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJV+JTiAAoJEO1sijiDR2RVj6kP/i/Qk8Y1jZKux4coHtWOaxo0 oHRlgzQWrQ9Av3MWBIZRfsf2O2lsffMN7KRee2n6EDIyOl/8W51LCqZ82xBVBQB2 S7Ygz8mRwRa7rmInC99IK77Ef4tqTyTsuQeSfmOT/WyTPM4X14hCZLrVVUeUk4lo 2MjK4bwyhFjgOo7YOxyoEbHBVrqfX7YDkKOODuPC2Os6CXWK2TVZOOjDWe8GAzBE Kaam6GOiKZR4cng+FiCCAog9494KMhxZ4Py/1prAJN93AElR2KQ3lIXKCalZ4sDv BeZnJpBMuGVVeN7tt3w/e566ivjQ7n4twnTmzvH6z2eZbkpxmw0VsQmhdly7EA8q 5cj6VUNfm24kCdhomUHwgZnlC+YmYGCOEXOLqa+BZaz+Nwbe5i1JE4tA9+hxrreW Ys5zcVsQZ2J8AnuGn9PmFYUIeiQNSAo4XzyiLHzVFiw2qCDxMeYMOoqEZfms9JqZ 9BXmb5ZJXkUPByVrj0FQ5oWu19UL+AyaIqY4HuGam1Ez5rL0d2RwH+xuGV/KkkfC WxGf287hnlGmpo3AlGat2/lEaM2gsmSjSX/nx0SBRET19JekxEEfpTztieeJSk06 3rj46d3GwnNN19qmEfDRn4rw8xZIgXVXVs41m0Ycy7VxdEfdJr0VkNVA9HyYxchZ +zkiQ3MlEyH7+Nx5SxYI =fF3x -----END PGP SIGNATURE----- --DDVzwrm+FWlZjJBm--