Re: Use my (date) index, darn it!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use my (date) index, darn it!
Дата
Msg-id 22764.1073285743@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Use my (date) index, darn it!  (John Siracusa <siracusa@mindspring.com>)
Ответы Re: Use my (date) index, darn it!
Список pgsql-performance
John Siracusa <siracusa@mindspring.com> writes:
> Obviously the planner is making some bad choices here.

A fair conclusion ...

> I know that it is trying to avoid random seeks or other scary things
> implied by a "correlation" statistic that is not close to 1 or -1, but
> it is massively overestimating the hit caused by those seeks and
> seemingly not taking into account the size of the table!

You haven't given any evidence to support these conclusions, though.
Could we see some table schemas, EXPLAIN ANALYZE output, and relevant
pg_stats entries for the various cases?

            regards, tom lane

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

Предыдущее
От: John Siracusa
Дата:
Сообщение: Use my (date) index, darn it!
Следующее
От: David Teran
Дата:
Сообщение: optimizing Postgres queries