Search Postgresql Archives

Re: is it possible to get current_user inside security definer function ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 07, 2006 at 12:58:29AM -0500, Tom Lane wrote:
> Michael Fuhr <mike@xxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux