Re: AND OR combination: index not being used

From: David Teran <david(dot)teran(at)cluster9(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org>
Subject: Re: AND OR combination: index not being used
Date: 2005-05-12 22:38:22
Message-ID: 5989cd23aa4942c871aba9cdcd7c4262@cluster9.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


On 12.05.2005, at 16:15, Tom Lane wrote:

> David Teran <david(dot)teran(at)cluster9(dot)com> writes:
>> Any hint how
>> to force postgres to use the index even with more OR parts?
>
> More up-to-date statistics would evidently help; the thing is
> estimating
> hundreds of rows returned and actually finding none.
>
I always do a 'vacuum analyze' if something does not work as expected.
But this did not help. Any other tip?

regards, David

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Sebastian Hennebrueder 2005-05-13 02:14:41 Re: Optimize complex join to use where condition before
Previous Message Sebastian Hennebrueder 2005-05-12 22:32:37 Optimize complex join to use where condition before join