]> granicus.if.org Git - postgresql/commit
Apply SELECT policies in INSERT/UPDATE+RETURNING
authorStephen Frost <sfrost@snowman.net>
Mon, 5 Oct 2015 11:55:11 +0000 (07:55 -0400)
committerStephen Frost <sfrost@snowman.net>
Mon, 5 Oct 2015 11:55:11 +0000 (07:55 -0400)
commitbd9014768035dd70f8cc33c215a8b929c2e13a35
tree1a0d86c46f700df70d197d65569635732508240e
parent31fb4df69d1364c79cfab0a2bd4470d0c48e942e
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.
src/backend/rewrite/rowsecurity.c