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>)
Список pgsql-novice
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
Дата:
Сообщение: [NOVICE] Question about RLS policy
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: [NOVICE] Question about RLS policy