pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
4+ messages / 2 participants
[nested] [flat]
* pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
@ 2015-10-05 11:55 Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Frost @ 2015-10-05 11:55 UTC (permalink / raw)
To: pgsql-committers
Apply SELECT policies in INSERT/UPDATE+RETURNING
Similar to 7d8db3e, given that INSERT+RETURNING requires SELECT rights
on the table, apply the SELECT policies as WCOs to the tuples being
inserted. Apply the same logic to UPDATE+RETURNING.
Back-patch to 9.5 where RLS was added.
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/bd9014768035dd70f8cc33c215a8b929c2e13a35
Modified Files
--------------
src/backend/rewrite/rowsecurity.c | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
@ 2015-10-05 11:55 Stephen Frost <sfrost@snowman.net>
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Frost @ 2015-10-05 11:55 UTC (permalink / raw)
To: pgsql-committers
Apply SELECT policies in INSERT/UPDATE+RETURNING
Similar to 7d8db3e, given that INSERT+RETURNING requires SELECT rights
on the table, apply the SELECT policies as WCOs to the tuples being
inserted. Apply the same logic to UPDATE+RETURNING.
Back-patch to 9.5 where RLS was added.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/2ca9d5445c35db8956e4abbf1e653373820e8c0a
Modified Files
--------------
src/backend/rewrite/rowsecurity.c | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
@ 2015-10-05 17:02 Peter Geoghegan <pg@heroku.com>
parent: Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 4+ messages in thread
From: Peter Geoghegan @ 2015-10-05 17:02 UTC (permalink / raw)
To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-committers
On Mon, Oct 5, 2015 at 4:55 AM, Stephen Frost <sfrost@snowman.net> wrote:
> Apply SELECT policies in INSERT/UPDATE+RETURNING
If we've changed this now, where does that leave the excluded.* pseudo-relation?
--
Peter Geoghegan
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [COMMITTERS] pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING
@ 2015-10-05 17:07 Stephen Frost <sfrost@snowman.net>
parent: Peter Geoghegan <pg@heroku.com>
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Frost @ 2015-10-05 17:07 UTC (permalink / raw)
To: Peter Geoghegan <pg@heroku.com>; +Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Peter,
On Monday, October 5, 2015, Peter Geoghegan <pg@heroku.com> wrote:
> On Mon, Oct 5, 2015 at 4:55 AM, Stephen Frost <sfrost@snowman.net
> <javascript:;>> wrote:
> > Apply SELECT policies in INSERT/UPDATE+RETURNING
>
> If we've changed this now, where does that leave the excluded.*
> pseudo-relation?
>
Away from my keyboard at the moment, and I'm sure Andres can comment, but I
didn't see this commit as changing anything regarding how excluded should
be handled (which Andres and I had at least seemed to come to an agreement
on).
Thanks!
Stephen
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-10-05 17:07 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 11:55 pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING Stephen Frost <sfrost@snowman.net>
2015-10-05 11:55 pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING Stephen Frost <sfrost@snowman.net>
2015-10-05 17:02 ` Peter Geoghegan <pg@heroku.com>
2015-10-05 17:07 ` Stephen Frost <sfrost@snowman.net>
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