Mark Volpe writes:
> I know this topic was discussed a few months ago, but I'm wondering if any
> decisions have been reached on if, how, and when setuid functions and triggers
> might be implemented. If not, I have an idea to throw at it.
Add a boolean column to pg_proc, when that column is true you select a
special function class handler in fmgr_info(), that function handler will
save and restore the user id and then call the real function. See
backend/utils/fmgr/fmgr.c for the action.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter