"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> head=# select pg_catalog.format_type(oid, typlen) from pg_type where typname = 'interval';
> ERROR: invalid INTERVAL typmod: 0xc
This is not a bug. format_type's second arg is typmod, not typlen.
regards, tom lane