On Wed, 30 Apr 2003, Tom Lane wrote:
> Sergey Holod <sss(at)radiocom(dot)net(dot)ua> writes:
> > GRANT USAGE ON schema data TO rcbilling;
> > Don't fully undestand why I need that, but It works..
> Okay, that's the same bug we found just a couple days ago. Schema-usage
> errors are checked at query parse time, not execution time, and the
> foreign-key triggers weren't being careful to set the right context for
> those checks. There's a fix in place for 7.3.3.
As a more general question, as what user should triggers from an action
inside a security definer function be run as? The fk triggers will work
after changing the place the permissions are changed, but afaics user
after triggers won't unless the trigger function is also security definer.
In response to
pgsql-sql by date
|Next:||From: Richard Huxton||Date: 2003-04-30 09:26:51|
|Subject: Re: rules question|
|Previous:||From: Tom Lane||Date: 2003-04-30 04:10:37|
|Subject: Re: Making "SECURITY DEFINER" procedures.. - SOLVED |