change to session_user in a security definer function

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: change to session_user in a security definer function
Date: 2011-06-22 13:53:56
Message-ID: 20110622155356.65762258@anubis.defcon1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-novice by date

  From Date Subject
Next Message Merlin Moncure 2011-06-22 14:04:02 Re: to escape or not to
Previous Message Jean-Yves F. Barbier 2011-06-22 13:49:07 to escape or not to