How to get the session user in a C user defined function - Mailing list pgsql-general

From John Leiseboer
Subject How to get the session user in a C user defined function
Date
Msg-id 1EC7FC2A429FF940B43E21AC8D1EECD069868007@qbrick.homeip.net
Whole thread Raw
Responses Re: How to get the session user in a C user defined function  (Michael Paquier <michael.paquier@gmail.com>)
List 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 by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Not storing MD5 hashed passwords
Next
From: Michael Paquier
Date:
Subject: Re: How to get the session user in a C user defined function