Re: Why so few built-in range types? - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Why so few built-in range types?
Date
Msg-id 20111202005601.GH24234@tamriel.snowman.net
Whole thread Raw
In response to Re: Why so few built-in range types?  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Why so few built-in range types?
List pgsql-hackers
* Robert Haas (robertmhaas@gmail.com) wrote:
> Me neither.  The ip4r type also supports ranges that aren't on
> CIDR-block boundaries, which probably isn't something that makes sense
> to incorporate into cidr.  But not everyone needs that, and some
> people might also need support for ipv6 CIDR blocks, which ip4r
> doesn't support.  So I don't necessarily see the existence of ip4r as
> a reason why cidr shouldn't have better indexing support.

Seems I wasn't clear.  The semantic changes were why ip4r was *created*
(instead of just using cidr..).  The fact that it's got index support is
independent from that (though, in my view, shows that people who
actually care about this data type use ip4r and don't use cidr, or we'd
hear much more complaining..).

I don't have any particular care about if cidr has indexing support or
not.  I'm certainly not *against* it, except insofar as it encourages
use of a data type that really could probably be better (by being more
like ip4r..).
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: backup_label during crash recovery: do we know how to solve it?
Next
From: Tom Lane
Date:
Subject: Re: Inlining comparators as a performance optimisation