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

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: is it possible to get current_user inside security definer function ?
Дата
Msg-id 20060307062830.GA19251@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: is it possible to get current_user inside security definer function ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Chris Travers
Дата:
Сообщение: Re: JSP pages don't work with database after postgres downgrade
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Sequencial scan instead of using index issue again