On Tue, Jul 21, 2026 at 12:57 AM Nico Williams <[email protected]> wrote:
> Oh, but what I wrote and had in mind is that the TRIGGER _PROCEDURE_
> would run as the PROCEDURE, though really it should be the TRIGGER
> owner.  And any functions called by that would run as the same user if
> they themselves were SECURITY INVOKER.

Fair enough. I think that still has the problem that I described.

> At least this way anything that the TRIGGER does is done with its
> owner's permissions.  Though still, as noted, you get a stack of
> user/role names, starting that of the one that started the top level
> command.  If you need to do authorization (_you will_) you'll want to
> know all of those names.

Knowing all of those names is exactly what I'm working on, but it's a
much bigger project.

-- 
Robert Haas
EDB: http://www.enterprisedb.com


Reply via email to