Re: is it possible to get current_user inside security definer function ? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: is it possible to get current_user inside security definer function ?
Date
Msg-id 20060307062830.GA19251@winnie.fuhr.org
Whole thread Raw
In response to Re: is it possible to get current_user inside security definer function ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Mar 07, 2006 at 12:58:29AM -0500, Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
> > Is this what you're after?  I don't know if there's another way.
>
> >     role_user := current_setting('role');
>
> We currently define the spec's CURRENT_ROLE as equivalent to
> CURRENT_USER, but I wonder if it shouldn't do what Boris is after.

I wondered why there wasn't a SOME_THING that showed that.  Does
the spec say anything about it?  I just did a quick search and
didn't see anything but I might easily have overlooked it.

--
Michael Fuhr

pgsql-general by date:

Previous
From: Chris Travers
Date:
Subject: Re: JSP pages don't work with database after postgres downgrade
Next
From: Greg Stark
Date:
Subject: Re: Sequencial scan instead of using index issue again