Thanks. Committed after applying some tweaks to it. I have noticedthat you forgot numeric_int4_opt_error() in the set.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных