Re: slow inet within cidr query - Mailing list pgsql-general

From Tom Lane
Subject Re: slow inet within cidr query
Date
Msg-id 6510.1164748942@sss.pgh.pa.us
Whole thread Raw
In response to slow inet within cidr query  ("Edwin Grubbs" <edwin.grubbs@gmail.com>)
List pgsql-general
"Edwin Grubbs" <edwin.grubbs@gmail.com> writes:
> Under postgres 8.1, the "<<=" comparison yields very slow queries with large
> tables.

<<= isn't optimizable within joins, and really isn't very suited to
btree indexes at all.  Sometime somebody should try to build a GiST
opclass that supports network sub/sup comparisons ... seems like it
should be pretty easy ...

            regards, tom lane

pgsql-general by date:

Previous
From: Oisin Glynn
Date:
Subject: Re: using a sequence as the functional equivalent to Oracle
Next
From: Ragnar
Date:
Subject: Re: NULLs ;-)