How to determine the current user

Поиск
Список
Период
Сортировка
От Michael Brusser
Тема How to determine the current user
Дата
Msg-id DEEIJKLFNJGBEMBLBAHCAEKCDMAA.michael@synchronicity.com
обсуждение исходный текст
Ответы Re: How to determine the current user  (Sean Chittenden <sean@chittenden.org>)
Список pgsql-sql
I'm running Pg v7.3.4 
I have a function where I need to determine the current user.
But since the function was created with option "SECURITY DEFINER" 
(it has to be this way) current_user returns the name of creator,
rather than current user.

Is there a way in such function find out the real current user?

Thanks,
Mike.





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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: get diagnostics not supported by ecpg?
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: How to determine the current user