"David E. Wheeler" <david(at)kineticode(dot)com> writes:
> Looks like regtype displays as an integer.
Better try that again.
regression=# select 1043::regtype;
regtype
-------------------
character varying
(1 row)
regression=#
I see no need for two functions here.
regards, tom lane