Re: WIP: RangeTypes - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: WIP: RangeTypes
Date
Msg-id 1297103561.2099.4.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: WIP: RangeTypes  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: WIP: RangeTypes
List pgsql-hackers
On sön, 2011-01-30 at 14:52 -0800, Jeff Davis wrote:
>   * naming issues:
>     - period -> tsrange ?
>     - periodtz -> tstzrange ?
>     - intrange -> int4range

Have you considered a grammar approach like for arrays, so that you
would write something like

CREATE TABLE ... (   foo RANGE OF int
);

instead of explicitly creating a range type for every scalar type in
existence?  I think that that might be easier to use in the common case.

I guess the trick might be how to store and pass the operator class and
some other parameters.





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: More extension issues: ownership and search_path
Next
From: "Kevin Grittner"
Date:
Subject: Re: Spread checkpoint sync