Re: current_user inside SECURITY DEFINER function?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Richard Hayward <richard(at)tortoise(dot)demon(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: current_user inside SECURITY DEFINER function?
Date: 2005-07-06 19:56:11
Message-ID: 200507062156.11537.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Frost wrote:
> * Richard Hayward (richard(at)tortoise(dot)demon(dot)co(dot)uk) wrote:
> > Is there any way of getting the user?
>
> You might try session_user. 8.1 will hopefully clean this up some.

Why would it? This is SQL standard behavior that should not be changed.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Markwardt 2005-07-06 20:01:22 Re: ERROR: cache lookup failed for relation 438095645
Previous Message felix 2005-07-06 19:39:19 Re: 7.3.2 closing connections, sometimes