get username of user calling function?

From: George Nychis <gnychis(at)cmu(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: get username of user calling function?
Date: 2007-03-01 16:40:11
Message-ID: 45E701EB.4040706@cmu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Is it possible to get the username of the user calling a function?

Just as a test, a function which would return the user their username.

Thanks!
George

Responses

Browse pgsql-general by date

  From Date Subject
Next Message George Nychis 2007-03-01 16:47:02 Re: creating a function with a variable table name
Previous Message Martijn van Oosterhout 2007-03-01 16:39:59 Re: Constructors for dates, times, and timestamps