Re: Best way to index IP data? - Mailing list pgsql-performance

From Steve Atkins
Subject Re: Best way to index IP data?
Date
Msg-id DA6DE53A-2F69-46F3-8C96-B341ADCDDFAF@blighty.com
Whole thread Raw
In response to Best way to index IP data?  (Kevin Kempter <kevin@kevinkempterllc.com>)
Responses Re: Best way to index IP data?
List pgsql-performance
On Jan 10, 2008, at 3:14 PM, Kevin Kempter wrote:

> Hi List;
>
> We'll be loading a table with begining & ending I.P.'s - the table
> will likely
> have upwards of 30million rows.  Any thoughts on how to get the best
> performance out of queries that want to look for IP ranges or the
> use of
> between queries? Should these be modeled as integers?

http://pgfoundry.org/projects/ip4r/

That has the advantage over using integers, or the built-in inet type,
of being indexable for range and overlap queries.

Cheers,
   Steve


pgsql-performance by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Best way to index IP data?
Next
From: "Jonah H. Harris"
Date:
Subject: Re: Best way to index IP data?