Justin Pryzby <pryzby@telsasoft.com> writes:
> I realized that my latest patch would break upgrades from old servers, which do
> not have array_position/s nor width_bucket, so ::reprocedure would fail. Maybe
> Andrey's way is better (checking proname rather than its OID).
proname is dangerous, because there's nothing stopping users from
adding more functions with the same name.
Just use a server-version-dependent list of regprocedure OIDs.
regards, tom lane