Re: How to find out who is calling the function

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: How to find out who is calling the function
Дата
Msg-id 87d64dzjyr.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: How to find out who is calling the function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> "BARTKO Zoltan" <bartko.zoltan@pobox.sk> writes:
> > caller() is the function I am looking for.
>
> The closest thing you will find is SESSION_USER.

I think you can have to have a trigger that compared session_user with the
value of the column in OLD and blocked the update/delete if it doesn't match.

--
greg

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: pg_class could not be found
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How can I delete a primary or foreign key?