change to session_user in a security definer function - Mailing list pgsql-novice

From Jean-Yves F. Barbier
Subject change to session_user in a security definer function
Date
Msg-id 20110622155356.65762258@anubis.defcon1
Whole thread Raw
List pgsql-novice
Hi list,

I wonder if it is possible to do so?

eg: security definer function checks session_user privileges against a table
(or whatever) and call another function to create a prepared statement AS if
it was session_user making that call.

JY
--
One does not thank logic.
        -- Sarek, "Journey to Babel", stardate 3842.4

pgsql-novice by date:

Previous
From: "Jean-Yves F. Barbier"
Date:
Subject: to escape or not to
Next
From: Merlin Moncure
Date:
Subject: Re: to escape or not to