Re: inconsistent/weird index usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inconsistent/weird index usage
Дата
Msg-id 10775.1096648455@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: inconsistent/weird index usage  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: inconsistent/weird index usage  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
>> Most of the problem here comes from the fact that "current_date - 7"
>> isn't reducible to a constant and so the planner is making bad guesses
>> about how much of each table will be scanned.

> I thought this was fixed in 7.4.  No?

No.  It's not fixed as of CVS tip either, although there was some talk
of doing something in time for 8.0.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: inconsistent/weird index usage
Следующее
От: "Aaron Werman"
Дата:
Сообщение: Re: Caching of Queries