Re: current_user inside SECURITY DEFINER function? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: current_user inside SECURITY DEFINER function?
Date
Msg-id 20050706063313.O24892@megazone.bigpanda.com
Whole thread Raw
In response to current_user inside SECURITY DEFINER function?  (Richard Hayward <richard@tortoise.demon.co.uk>)
List pgsql-general
On Tue, 5 Jul 2005, Richard Hayward wrote:

> Is there any way to get the name of the current user inside a PL/pgSQL
> function that is defined with security definer?

IIRC, SESSION_USER should give the original user.

pgsql-general by date:

Previous
From: Patrick.FICHE@AQSACOM.COM
Date:
Subject: Re: template1 problems
Next
From: Ben-Nes Yonatan
Date:
Subject: Pl/PgsSQL array