Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a0sb1-0005YF-0O for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Nov 2015 14:59:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a0sb0-0002Wl-J2 for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Nov 2015 14:59:58 +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 1a0sb0-0002Wa-2a for pgsql-bugs@postgresql.org; Mon, 23 Nov 2015 14:59:58 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a0sax-0001ao-TZ for pgsql-bugs@postgresql.org; Mon, 23 Nov 2015 14:59:56 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7746A5F79F; Mon, 23 Nov 2015 09:59:55 -0500 (EST) Date: Mon, 23 Nov 2015 09:59:55 -0500 From: Stephen Frost To: Michael Paquier Cc: calebmeredith8@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #13780: Multiple commands not allowed for creating a policy. Message-ID: <20151123145955.GG3685@tamriel.snowman.net> References: <20151122132327.1832.52687@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8/45bdD4Mh/9xD99" Content-Disposition: inline In-Reply-To: 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: 09:58:15 up 110 days, 23:28, 10 users, load average: 0.08, 0.07, 0.11 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --8/45bdD4Mh/9xD99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael, * Michael Paquier (michael.paquier@gmail.com) wrote: > On Sun, Nov 22, 2015 at 10:23 PM, wrote: > > This doesn't seem to be intended as the GRANT specification allows it, = and > > CREATE POLICY supports the ALL command. >=20 > Yeah, I would tend to agree that the existence of ALL contradicts the > expression constraints that are in place when defining a non-ALL policy as > we could basically ignore either the WITH CHECK or USING clauses defined = in > a policy defined depending on the DML or SELECT command used. To be more > exact, for example with an ALL policy that has both a WITH CHECK and USING > defined, we would ignore the USING clause with an INSERT query, right? We > are in beta2 state now, so I don't think anything is going to change, but > Stephen, your thoughts perhaps? We could support allowing multiple commands for a policy and would just need to adjust the checks to make sure that the policy definition makes sense, but that's all new-feature type of work which would be for 9.6 and not a bug in the current implementation. I'm certainly not against doing that, but it doesn't seem like a terribly high priority. Thanks! Stephen --8/45bdD4Mh/9xD99 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJWUynqAAoJEO1sijiDR2RVO78P/1KeFcdG1seQEWZanfb6UjTp sJqVf1WAnhYeypY+VHZEygx3WzowI+bG2L5jyqLU1BpB6P/lfOH9I6W9URdVCMSx u+rQISqdEOmvJ6oZVaqYvIDynUb7weSt0intDoxupUhzkFSlU7irnUcS065IIRIP Ba7JloycsyWVQMRtGk470cd5MoFqiWCHuYcpj+JJs4ELXdVg3rjMOMDMjbUGHIDF 8i+LWtN23f5WSlAx+J7ax7WyPulwlysEOmB7QU9Wn/Cnrh94zDnN/3ALLlhTPAyA pC1J7pCmkAz19TRxS8h5JZTh24fChC0L/LqtCNcgqmTUV304/NwNpPv/7WR1GluJ 9hda37WYr8gsf0rYOGc2H/EUXYp0lIJf964T4Fd8cQLGN0wV1jn5QUfwktsF7jet WgYTBT2GSV2ONXYaYO0a8APgo2moUIfSqDe6kcvGuODkCS8brqtmNe1sqixKMPsu bcgY50PkZocn8OEA30VtiNnLXWVt70m9RlAhPLVJ4ZcW+wP6y3GIFgxNCi6RS1c8 CJE8vEukuQ9eaFXAD+Hmjo1J4MsHfTsYDh7TYelb/3tQMEuiEKRtXLp8+oQWWmfM +UKkgML79pdrHyrIBnMQoysCoGEJIHXbl0/Sa7QqEt/vefgmzkrHWvxJiMlBx8rg llfI8JlzbGUQGvAHboz+ =Usdm -----END PGP SIGNATURE----- --8/45bdD4Mh/9xD99--