Re: Return value of current_user before calling SECURITY DEFINER function. - Mailing list pgsql-general

From Dmitriy Igrishin
Subject Re: Return value of current_user before calling SECURITY DEFINER function.
Date
Msg-id CAAfz9KM96MvR3G8rPfuy3ZZeY_eW80KVSh4SrwZ772NRyRUTuA@mail.gmail.com
Whole thread Raw
In response to Re: Return value of current_user before calling SECURITY DEFINER function.  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Return value of current_user before calling SECURITY DEFINER function.  (Dmitriy Igrishin <dmitigr@gmail.com>)
List pgsql-general



2013/12/4 Pavel Stehule <pavel.stehule@gmail.com>
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.

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Return value of current_user before calling SECURITY DEFINER function.
Next
From: Dmitriy Igrishin
Date:
Subject: Re: Return value of current_user before calling SECURITY DEFINER function.