Re: User permission - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: User permission
Date
Msg-id 200404182221.32859.peter_e@gmx.net
Whole thread Raw
In response to Re: User permission  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> I'm not sure there is any clean solution that would make this do what
> you expect, partly because it's not real clear what you expect
> (consider nested SECURITY DEFINER functions, error recovery, etc).
> I'd be inclined to put a band-aid on it by forbidding SET SESSION
> AUTHORIZATION inside functions.

Well, we could also try to just not switch back to the old value when
exiting the function.  I'll have a look to see whether that is doable.


pgsql-general by date:

Previous
From: Eric Ridge
Date:
Subject: Re: Folding subtotals into query?
Next
From: Jerry LeVan
Date:
Subject: Re: Folding subtotals into query?