How to get the session user in a C user defined function

Поиск
Список
Период
Сортировка
От John Leiseboer
Тема How to get the session user in a C user defined function
Дата
Msg-id 1EC7FC2A429FF940B43E21AC8D1EECD069868007@qbrick.homeip.net
обсуждение исходный текст
Ответы Re: How to get the session user in a C user defined function
Список pgsql-general
I would like to get the session_user into a C char[] in a C language UDF. I have found what appears to be a function
returninga Datum type called session_user, but I'm having trouble working out how to call it from within my C function.
Cananyone provide some advice on how to do this? 

John
Email: jleiseboer@bigpond.com



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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Not storing MD5 hashed passwords
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: How to get the session user in a C user defined function