Re: Postgres optimizer choosing wrong index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgres optimizer choosing wrong index
Дата
Msg-id 10970.1224782151@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Postgres optimizer choosing wrong index  (Jack Orenstein <jack.orenstein@hds.com>)
Ответы Re: Postgres optimizer choosing wrong index
Список pgsql-general
Jack Orenstein <jack.orenstein@hds.com> writes:
> Tom Lane wrote:
>> If you plug in a value that *does* occur in the table it should probably
>> choose the more-relevant index consistently.

> Unfortunately, it matters a lot at runtime. The dh value is not very selective,
> as shown by the statistics above.

A dh value that does not occur in the index is *perfectly* selective.
I'm not sure what your problem is but this example isn't illustrating
anything wrong that I can see.

            regards, tom lane

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