Re: inconsistent/weird index usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inconsistent/weird index usage
Дата
Msg-id 27189.1096760661@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: inconsistent/weird index usage  (Hannu Krosing <hannu@tm.ee>)
Список pgsql-performance
Hannu Krosing <hannu@tm.ee> writes:
>> No.  It's not fixed as of CVS tip either, although there was some talk
>> of doing something in time for 8.0.

> That's weird - my 7.4.2 databases did not consider (now()-'15
> min'::interval) to be a constant whereas 7.4.5 does (i.e. it does use
> index scan on index on datetime column)

The question isn't whether it can use it as an indexscan bound; the
question is whether it can derive an accurate rowcount estimate.
The issue is exactly that STABLE functions work for one but not the
other.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Query planner problem
Следующее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: Caching of Queries