Re: Inserts restricted to a trigger

Поиск
Список
Период
Сортировка
Искать
От
Adrian Klaver
Тема
Re: Inserts restricted to a trigger
Дата
Msg-id
6fe78cce-7e74-926b-7d3d-2e09da698cc8@aklaver.com
Ответ на
Список
Дерево обсуждения
Inserts restricted to a trigger Miles Elam <miles.elam@productops.com>
Re: Inserts restricted to a trigger Adrian Klaver <adrian.klaver@aklaver.com>
Re: Inserts restricted to a trigger raf@raf.org
Re: Inserts restricted to a trigger Miles Elam <miles.elam@productops.com>
Re: Inserts restricted to a trigger Torsten Förtsch <tfoertsch123@gmail.com>
Re: Inserts restricted to a trigger Miles Elam <miles.elam@productops.com>
Re: Inserts restricted to a trigger Adrian Klaver <adrian.klaver@aklaver.com>
Re: Inserts restricted to a trigger Miles Elam <miles.elam@productops.com>
Re: Inserts restricted to a trigger Adrian Klaver <adrian.klaver@aklaver.com>
Re: Inserts restricted to a trigger Miles Elam <miles.elam@productops.com>
Re: Inserts restricted to a trigger Adrian Klaver <adrian.klaver@aklaver.com>
Re: Inserts restricted to a trigger Adrian Klaver <adrian.klaver@aklaver.com>
On 6/17/19 4:54 PM, Miles Elam wrote:
> Is there are way to restrict direct access to a table for inserts but 
> allow a trigger on another table to perform an insert for that user?
> 
> I'm trying to implement an audit table without allowing user tampering 
> with the audit information.

Would the below not work?:
CREATE the table as superuser or other privileged user
Have trigger function run as above user(use SECURITY DEFINER)

> 
> 
> Thanks in advance,
> 
> Miles Elam


-- 
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления
От: Jeff Janes
Дата:
От: Jeff Janes
Дата:
FAQ