Apply SELECT policies in INSERT/UPDATE+RETURNING
Stephen Frost <sfrost@snowman.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/rewrite/rowsecurity.c | modified | +29 −3 |