Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group