Peter Eisentraut <peter_e@gmx.net> writes:
> A while ago I suggested to create a backend internal function that takes
> an internal type name and an atttypmod and formats it to a canonical SQL
> type, to be used by pg_dump, psql, and anyone who feels like it.
> I have it written now, here's an example of how it works. Any comments?
For the most part, a function working from type OID would be more
convenient, I should think. Possibly offer both ...
regards, tom lane