Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Dec 14, 2009 at 4:06 AM, <tomas@tuxteam.de> wrote:
>>> As another approach, what about storing typeid in typmod?
>>> (Oid can be assumed to be stored in int32.)
> It 's very different than the way we've traditionally used typmod,
Aside from the problems already pointed out, there's another: this
definition usurps the ability to attach a typmod to the range's
base type. Again, you should be looking at arrays not enums for
a reference example. The typmod of an array feeds through to its
element type.
regards, tom lane