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  (Jack Orenstein <jack.orenstein@hds.com>)
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Hot Standby utility and administrator functions
Следующее
От: Jack Orenstein
Дата:
Сообщение: Re: Postgres optimizer choosing wrong index