Re: Question on "current_user" - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Question on "current_user"
Date
Msg-id Pine.LNX.4.44.0310121440120.27310-100000@peter.localdomain
Whole thread Raw
In response to Question on "current_user"  (Michael Brusser <michael@synchronicity.com>)
List pgsql-hackers
Michael Brusser writes:

> Is there something special about function current_user?

Yes.

> In v.7.3.4 it only works when I do "select current_user;"
> and breaks when called with the empty arg. list:

That is the special thing.  It's bizarre, but that's how SQL wants it.
I've wanted to extend it so that you can call it both ways, but didn't get
enough support for it.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: rt_sigprocmask
Next
From: Peter Eisentraut
Date:
Subject: http://www.pgsql.com/register/submit.php