Re: [GENERAL] Recursive row level security policy

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: [GENERAL] Recursive row level security policy
Дата
Msg-id 057461ff-6f9a-cfc5-56bc-414cb4e540a7@joeconway.com
обсуждение исходный текст
Ответ на [GENERAL] Recursive row level security policy  (Simon Charette <charette.s@gmail.com>)
Список pgsql-general
On 12/17/2016 02:04 PM, Stephen Frost wrote:
> Note that RLS won't be applied for the table owner either (unless the
> relation has 'FORCE RLS' enabled for it), so you don't have to have
> functions which are run as superuser to use the approach Joe
> recommended.

Good point, thanks, I should have mentioned that. You would be better
off having a different user own both the table and the function in order
to avoid using/abusing the superuser for that purpose. Just be aware
that FORCE RLS would break that solution.


--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


Вложения

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: [GENERAL] Recursive row level security policy
Следующее
От: Torsten Förtsch
Дата:
Сообщение: Re: [GENERAL] SQL query problem of a Quiz program