range types and ip4r

Started by Peter Eisentrautover 14 years ago2 messages
#1Peter Eisentraut
peter_e@gmx.net

Just wondering, will the planned range type functionality also be able
to absorb the functionality of the ip4r type as a range of the ip4 type
(http://pgfoundry.org/projects/ip4r)? Maybe it's trivial, but since the
ip types also have a kind of hierarchical structure, I figured I'd point
it out in case you hadn't considered it.

#2Jeff Davis
pgsql@j-davis.com
In reply to: Peter Eisentraut (#1)
Re: range types and ip4r

On Tue, 2011-07-19 at 09:38 +0300, Peter Eisentraut wrote:

Just wondering, will the planned range type functionality also be able
to absorb the functionality of the ip4r type as a range of the ip4 type
(http://pgfoundry.org/projects/ip4r)? Maybe it's trivial, but since the
ip types also have a kind of hierarchical structure, I figured I'd point
it out in case you hadn't considered it.

Thanks for bringing that up.

It had briefly crossed my mind, but I didn't see any problem with it.
Does it use the hierarchical nature to manipulate the values at all, or
is it just a flat range?

If it's just a flat range it would be similar to int4range, I would
think.

Regards,
Jeff Davis