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

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Return value of current_user before calling SECURITY DEFINER function.
Date: 2013-12-04 09:17:17
Message-ID: CAAfz9KM96MvR3G8rPfuy3ZZeY_eW80KVSh4SrwZ772NRyRUTuA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2013/12/4 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2013-12-04 09:20:13 Re: Return value of current_user before calling SECURITY DEFINER function.
Previous Message Pavel Stehule 2013-12-04 09:10:37 Re: Return value of current_user before calling SECURITY DEFINER function.