pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: calebmeredith8@gmail.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13780: Multiple commands not allowed for creating a policy.
Date: Mon, 23 Nov 2015 09:59:55 -0500
Message-ID: <20151123145955.GG3685@tamriel.snowman.net> (raw)
In-Reply-To: <CAB7nPqT986ToW6DpOx=rz-Q_Kbn_HvVcU9us0Vk=R8V3S_6QLQ@mail.gmail.com>
References: <20151122132327.1832.52687@wrigleys.postgresql.org>
	<CAB7nPqT986ToW6DpOx=rz-Q_Kbn_HvVcU9us0Vk=R8V3S_6QLQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael,

* Michael Paquier (michael.paquier@gmail.com) wrote:
> On Sun, Nov 22, 2015 at 10:23 PM, <calebmeredith8@gmail.com> wrote:
> > This doesn't seem to be intended as the GRANT specification allows it, and
> > CREATE POLICY supports the ALL command.
> 
> 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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (6+ messages)  latest in thread

Message-ID: <20151123145955.GG3685@tamriel.snowman.net>
Permalink:  ../20151123145955.GG3685@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20151123145955.GG3685@tamriel.snowman.net

 · 

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-bugs@postgresql.org
  Cc: sfrost@snowman.net, michael.paquier@gmail.com
  Subject: Re: BUG #13780: Multiple commands not allowed for creating a policy.
  In-Reply-To: <20151123145955.GG3685@tamriel.snowman.net>
  References: <20151122132327.1832.52687@wrigleys.postgresql.org> <CAB7nPqT986ToW6DpOx=rz-Q_Kbn_HvVcU9us0Vk=R8V3S_6QLQ@mail.gmail.com> <20151123145955.GG3685@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