Re: Question on "current_user"

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Michael Brusser <michael(at)synchronicity(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question on "current_user"
Date: 2003-10-12 12:41:17
Message-ID: Pine.LNX.4.44.0310121440120.27310-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-10-12 13:01:39 http://www.pgsql.com/register/submit.php
Previous Message Michael Meskes 2003-10-12 12:27:11 Still not able to initdb