Re: [NOVICE] Question about RLS policy

Поиск
Список
Период
Сортировка
Искать
От
Albe Laurenz
Тема
Re: [NOVICE] Question about RLS policy
Дата
Msg-id
A737B7A37273E048B164557ADEF4A58B53A56AD5@ntex2010i.host.magwien.gv.at
Ответ на
Список
Дерево обсуждения
[NOVICE] Question about RLS policy Garry Chen <gc92@cornell.edu>
Re: [NOVICE] Question about RLS policy Albe Laurenz <laurenz.albe@wien.gv.at>
Garry Chen wrote:
> I am new to postgresql and try to create RLS for a table using policy.  I
> am wondering can I using plpgsql instated off sql inside using ()?

Not sure if I understand you right, but you must put SQL into the USING
and WITH CHECK clauses.

But you can call a PL/pgSQL function from that SQL.

Yours,
Laurenz Albe
В списке pgsql-novice по дате отправления
От: Garry Chen
Дата:
От: Albe Laurenz
Дата:
FAQ