Re: slow inet within cidr query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Edwin Grubbs" <edwin(dot)grubbs(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: slow inet within cidr query
Date: 2006-11-28 21:22:22
Message-ID: 6510.1164748942@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Edwin Grubbs" <edwin(dot)grubbs(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message novnov 2006-11-28 21:37:44 Re: Editing contrib modules which are loaded by default?
Previous Message Tom Lane 2006-11-28 21:09:11 Re: backend crash following load command