Re: Re: Query not using index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: Query not using index
Дата
Msg-id 25024.989529727@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query not using index  (ryan@paymentalliance.net)
Ответы Re: Re: Query not using index  (Chris Jones <chris@mt.sri.com>)
Список pgsql-general
ryan@paymentalliance.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: NAMEDATALEN
Следующее
От: John Coers
Дата:
Сообщение: Re: COPY locking