From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Fennell <dave@microtux.co.uk>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6076: Unexpected "Security Definer / invoker" interaction
Date: Fri, 24 Jun 2011 11:25:42 -0400
Message-ID: <26125.1308929142@sss.pgh.pa.us> (raw)
In-Reply-To: <201106241448.p5OEmekP044181@wwwmaster.postgresql.org>
References: <201106241448.p5OEmekP044181@wwwmaster.postgresql.org>
"Dave Fennell" <dave@microtux.co.uk> writes:
> I would expect that if a function defined as "security definer" calls a
> function defined as "security invoker" the "invoker" role used would be the
> "definer" of the first function?
So would I.
> However it appears that the *actual*
> invoker (current user) is used.
You did not provide any evidence of that. Please show a *complete*
self-contained test case.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, dave@microtux.co.uk
Subject: Re: BUG #6076: Unexpected "Security Definer / invoker" interaction
In-Reply-To: <26125.1308929142@sss.pgh.pa.us>
References: <201106241448.p5OEmekP044181@wwwmaster.postgresql.org> <26125.1308929142@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox