Re: Can row level security policies also be implemented for views?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Can row level security policies also be implemented for views?
Дата
Msg-id 5660D611.403@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Can row level security policies also be implemented for views?  (Caleb Meredith <calebmeredith8@gmail.com>)
Список pgsql-general
On 12/3/15 7:17 AM, Caleb Meredith wrote:
> Yes it probably could be solved by this. Just a trigger which replaces
> SELECT right?

It's not a trigger and I don't know what you mean by replacing select.
An SRF can return anything you want it to.

My suggestion was to run a standard select statement (possibly a dynamic
one via EXECUTE) from the SRF, in the hope that the system would just
consider that to be a plain-old SELECT against the table, allowing RLS
to function.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Pgbasebackup help
Следующее
От: Selim Tuvi
Дата:
Сообщение: BDR: ALTER statement hanging