Re: ON CONFLICT issues around whole row vars, - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: ON CONFLICT issues around whole row vars,
Date
Msg-id CAOuzzgoZCtyOFhZbQWZsssiHprue=D1ovoQgKbLNVbqhcTmt2g@mail.gmail.com
Whole thread Raw
In response to Re: ON CONFLICT issues around whole row vars,  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres,

On Monday, October 5, 2015, Andres Freund <andres@anarazel.de> wrote:
On 2015-10-05 08:01:00 -0400, Stephen Frost wrote:
> Peter, all,
> I had intended to address with policies what is addressed through
> permissions with 7d8db3e, but the coverage for INSERT+RETURNING was only
> done when ON CONFLICT was in use.
>
> I've fixed that by applying the SELECT policies as WCOs for both the
> INSERT and UPDATE RETURNING cases.  This matches the permissions system,
> where we require SELECT rights on the table for an INSERT RETURNING
> query.

This really needs tests verifying the behaviour...

Good point, will add. 

Thanks!

Stephen 

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: ON CONFLICT issues around whole row vars,
Next
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan