]> granicus.if.org Git - postgresql/commit
Apply SELECT policies in INSERT/UPDATE+RETURNING
authorStephen Frost <sfrost@snowman.net>
Mon, 5 Oct 2015 11:55:13 +0000 (07:55 -0400)
committerStephen Frost <sfrost@snowman.net>
Mon, 5 Oct 2015 11:55:13 +0000 (07:55 -0400)
commit2ca9d5445c35db8956e4abbf1e653373820e8c0a
tree83bb40f192345c2f1538dd5a0420032a70ac52af
parent4158cc3793fe0e074dcb58e91103344c8ffcd6df
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