Re: get username of user calling function?

Поиск
Список
Период
Сортировка
От George Nychis
Тема Re: get username of user calling function?
Дата
Msg-id 45E70EE1.6010303@cmu.edu
обсуждение исходный текст
Ответ на Re: get username of user calling function?  ("David Legault" <legault.david@gmail.com>)
Ответы Re: get username of user calling function?  ("David Legault" <legault.david@gmail.com>)
Список pgsql-general

David Legault wrote:
>
>
> See the EXECUTE function in the pl/pgSQL language in the docs for dynamic
> queries.
>
So it turns out that in a SECURITY DEFINER the current_user is the owner of the function.
  I had to use session_user and it works now :)

- George

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: supporting 2000 simultaneous connections.
Следующее
От: Palle Girgensohn
Дата:
Сообщение: Re: /libexec/ld-elf.so.1: Shared object "libpq.so.4" not found