Apply SELECT policies in INSERT/UPDATE+RETURNING
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.

zeroae/postgres-xl,zeroae/postgres-xl,zeroae/postgres-xl,zeroae/postgres-xl,zeroae/postgres-xl