Re: Range types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Range types
Date
Msg-id 29352.1260803807@sss.pgh.pa.us
Whole thread Raw
In response to Re: Range types  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Hot Standby, release candidate?
Next
From: Simon Riggs
Date:
Subject: Re: WAL Info messages