Re: index for inet and >> (contains) function - Mailing list pgsql-general

From Tom Lane
Subject Re: index for inet and >> (contains) function
Date
Msg-id 17497.1143047291@sss.pgh.pa.us
Whole thread Raw
In response to index for inet and >> (contains) function  (Richard Jones <rich@annexia.org>)
List pgsql-general
Richard Jones <rich@annexia.org> writes:
>   select countryid from iptocountry where network >> '1.2.3.4';

> Is there a suitable index that I can put on the network field to fix
> this?

Not at the moment :-(.  I think it might be possible to write a GIST
opclass that could handle this, but there's not one there today.

            regards, tom lane

pgsql-general by date:

Previous
From: Vivek Khera
Date:
Subject: Re: Advantages of PostgreSQL over MySQL 5.0
Next
From: "Thomas F. O'Connell"
Date:
Subject: Re: Autovacuum Daemon Disrupting dropdb?