Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> I am not sure how safe is read argmodes from syscache after procedure
> execution. Theoretically, the procedure pg_proc tuple can be modified from
> procedure, and can be committed from procedure. Isn't better to safe
> argmodes before execution?
Hm. That would mean throwing non-writable-arg errors before rather than
after, but that's probably fine.
regards, tom lane