Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread mbox)
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.

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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group