petere@postgresql.org (Peter Eisentraut - PostgreSQL) writes:
> Allow functions to be executed with the privileges of the function owner.
Hmm. Have you tried this with recursive plpgsql functions? I have a
feeling that that little hack of replacing the flinfo link isn't gonna
work well in plpgsql, because of its caching of query plans.
Of course this is not so much the fault of your patch as it is of the
brain-dead notion of keeping runtime function caches in plan trees.
Maybe it's time to bite the bullet and do something about that.
regards, tom lane