DEV Community

Discussion on: Row Level Security with an ARRAY of tenants set in session parameter (RLS)

Collapse
 
mcadariu profile image
Mircea Cadariu • Edited

Hi Franck,

Nice informative article, thanks! I have discovered in practice (also found this discussion as well in the meantime) about some limitations of using RLS on more complex queries. Maybe an idea for a Part 2 of this article, featuring some queries that trip the planner up when using RLS, and what to do about it?

Collapse
 
franckpachot profile image
Franck Pachot

Thanks Mircea. I'll look at your case. I've already added a paragraph with a policy that is optimized when there's only one item in the array (from another user feedback)