Re: Row level security performance joining large tables

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Row level security performance joining large tables
Дата
Msg-id 20161110145031.GG13284@tamriel.snowman.net
обсуждение исходный текст
Ответ на Row level security performance joining large tables  ("David R. Pike" <david.pike@trustedconcepts.com>)
Список pgsql-general
David,

* David R. Pike (david.pike@trustedconcepts.com) wrote:
> From what I can understand the RLS implementation strives to execute policy checks before user provided predicate
checksso as to avoid leaking protected data.  Is there any way to make the join look "safe" to the optimizer to avoid
fulltable scans?  Isn't this a common scenario? 

You can use a security barrier view which is owned by the same user that
the tables underneath are owned by, that will bypass RLS on the tables
themselves and therefore you'll need to implement the appropriate quals
in the security barrier view.

As Tom mentions, we're working to improve RLS optimization as well.  As
is pretty common with various features, the initial implementation
provides the functionality but perhaps isn't as performant as one might
like, and then we iterate and improve it in the subsequent releases.

Thanks!

Stephen

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Postgresql 94 from PostgreSQL RPM Repository (with Yum)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Gin indexes on intarray is fast when value in array does not exists, and slow, when value exists