DEV Community

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

Collapse
 
franckpachot profile image
Franck Pachot

Thanks Marc. Yes, with only per-column statistics, the estimations will probably be underestimated. For example, WHERE tenant='a_customer_in_UK' and customer_name='Smith' will not know the correlation.

It may be good to CREATE STATISTICS on column groups