From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Apply SELECT policies in INSERT/UPDATE+RETURNING |
Date: | 2015-10-05 11:55:28 |
Message-ID: | E1Zj4Ma-0003Sx-Ka@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-10-05 13:39:58 | Re: [COMMITTERS] pgsql: Lower *_freeze_max_age minimum values. |
Previous Message | Stephen Frost | 2015-10-05 11:54:31 | Re: Rename withCheckOptions to insertedCheckClauses |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2015-10-05 12:01:00 | Re: ON CONFLICT issues around whole row vars, |
Previous Message | Stephen Frost | 2015-10-05 11:54:31 | Re: Rename withCheckOptions to insertedCheckClauses |