Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Here is a first patch to slightly refactor the type and typmod lookups
> with the aim of making it easier to possibly changing the nature or
> representation of typmods in the future and making it easier to merge
> the collation patch.
The comment for typenameTypeIdAndMod could use a bit of adjustment
maybe (it's not "only handing back the OID"); otherwise seems fine.
regards, tom lane