Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> The term for user identity is "authorization", so I would
> call these commands
> SET AUTHORIZATION { INVOKER | DEFINER }
I like that better, too.
Overall, the only objection I can see to doing things this way is that
we have to do it over again for each function language (eg, adding such
a thing to SQL functions is doable, but much more tedious than for
plpgsql). But it seems more flexible than the pg_proc-attribute
approach.
regards, tom lane