Re: another optimizer question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jakub Ouhrabka <jouh8664(at)ss1000(dot)ms(dot)mff(dot)cuni(dot)cz>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: another optimizer question
Date: 2002-04-18 14:31:26
Message-ID: 11691.1019140286@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jakub Ouhrabka <jouh8664(at)ss1000(dot)ms(dot)mff(dot)cuni(dot)cz> writes:
> can anyone explain me why there are different query plans for "select ...
> from ... where y!=x" and "select ... from ... where y<x or y>x" for
> integers, please?

!= isn't an indexable operation. This is not the planner's fault, but
a consequence of the index opclass design we inherited from Berkeley.
I suppose we could make it an indexable operation --- but there are so
few cases where it'd be a win that I'm not excited about it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-04-18 14:32:05 Re: timeout implementation issues
Previous Message Tom Lane 2002-04-18 14:20:57 Re: new food for the contrib/ directory