DEV Community

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

Collapse
 
killbulle profile image
marc godin • Edited

Hi, Frank, first thanks for your awewome blog, little question
On this row security level, i suppose we still have some statistic mixup on histogram
on tenand by id, or there is some way to escape this ?
regards marc

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