Data access and user id

Поиск
Список
Период
Сортировка
От Jean-Yves F. Barbier
Тема Data access and user id
Дата
Msg-id 4B081069.7020907@gmail.com
обсуждение исходный текст
Ответы Re: Data access and user id  (Richard Broersma <richard.broersma@gmail.com>)
Список pgsql-novice
Hi list,

I can't solve what should be a trivial problem:

I don't want users to have direct access to tables (no direct inserts,
updates & deletes), so I use views and functions for that.

My PB is I just can use triggers with SECURITY DEFINER to do that, thus
I can't update the field 'user_mod' with user's id because triggers are
always executed as their owner's id, not caller's id.

Jiff
--

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

Предыдущее
От: Démi Zsolt
Дата:
Сообщение: pgsql cluster
Следующее
От: Richard Broersma
Дата:
Сообщение: Re: Data access and user id