Re: Slow join using network address function - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow join using network address function
Date
Msg-id 22239.1077636202@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slow join using network address function  ("Eric Jain" <Eric.Jain@isb-sib.ch>)
Responses Re: Slow join using network address function
Re: Slow join using network address function
List pgsql-performance
"Eric Jain" <Eric.Jain@isb-sib.ch> writes:
>> <http://word-to-the-wise.com/ipr.tgz> is a datatype that contains
>> a range of IPv4 addresses, and which has the various operators to
>> make it GIST indexable.

> Great, this looks very promising.

>> No cast operators between ipr and inet types.

> Any way to work around this, short of dumping and reloading tables?

Wouldn't it be better to implement the GIST indexing operators of that
package on the standard datatypes?  It wasn't apparent to me what "range
of IP addresses" does for you that isn't covered by "CIDR subnet" for
real-world cases.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Eric Jain"
Date:
Subject: Re: Slow join using network address function
Next
From: "Jonathan M. Gardner"
Date:
Subject: Materialized View Summary