Re: Re: Query not using index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ryan(at)paymentalliance(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: Query not using index
Date: 2001-05-10 21:22:07
Message-ID: 25024.989529727@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ryan(at)paymentalliance(dot)net writes:
> No the query usually returns between 0 and 5 rows. Usually not zero -
> most often 1.

Ah. You must have a few values that are far more frequent (like tens of
thousands of occurrences?) and these are throwing off the planner's
statistics.

7.2 will probably do better with this sort of data distribution, but for
now it's a difficult problem.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-10 21:25:04 Re: formatting a date
Previous Message Tom Lane 2001-05-10 21:04:49 Re: NAMEDATALEN