Re: [GENERAL] Return value of current_user before calling SECURITY DEFINER function.

2013-12-04 Thread Dmitriy Igrishin
In other words, I need to get an information about *current* role of the caller inside the SECURITY DEFINER function. 2013/12/4 Dmitriy Igrishin > > > > 2013/12/4 Pavel Stehule > >> Hello >> >> pls, try session_user >> > Not really :-(. The user can perform SET ROLE before calling the SECURITY

Re: [GENERAL] Return value of current_user before calling SECURITY DEFINER function.

2013-12-04 Thread Dmitriy Igrishin
2013/12/4 Pavel Stehule > Hello > > pls, try session_user > Not really :-(. The user can perform SET ROLE before calling the SECURITY DEFINER function and I need to know who is the caller at the time of call. I need something like a calling_user() function... -- // Dmitriy.

Re: [GENERAL] Return value of current_user before calling SECURITY DEFINER function.

2013-12-04 Thread Pavel Stehule
Hello pls, try session_user Regards Pavel 2013/12/4 Dmitriy Igrishin > Hello, > > Is there are way to determine a subject? > > Thanks. > > -- > // Dmitriy. > >

Re: [GENERAL] Return value of current_user before calling SECURITY DEFINER function.

2013-12-04 Thread Dmitriy Igrishin
For clarity, is it possible to write a SECURITY DEFINER function which returns a value of current_user at the moment of call? 2013/12/4 Dmitriy Igrishin > Hello, > > Is there are way to determine a subject? > > Thanks. > > -- > // Dmitriy. > > -- // Dmitriy.

[GENERAL] Return value of current_user before calling SECURITY DEFINER function.

2013-12-04 Thread Dmitriy Igrishin
Hello, Is there are way to determine a subject? Thanks. -- // Dmitriy.