Re: query does not return after increasing range in 'between' clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query does not return after increasing range in 'between' clause
Дата
Msg-id 3056.1409166021@sss.pgh.pa.us
обсуждение исходный текст
Ответ на query does not return after increasing range in 'between' clause  (Dennis <dennisr@visi.com>)
Список pgsql-general
Dennis <dennisr@visi.com> writes:
> Hi, I am having bad luck with a query that should return zero rows but actually never returns (completes execution.)

Seems like you need a multicolumn index on t_week_f, and maybe also on
nb_products, so that the conditions shown as "filters" here could be
applied as index conditions instead.

I wonder also if your statistics are up to date --- are the rowcount
estimates shown in EXPLAIN reasonably sane?

            regards, tom lane


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

Предыдущее
От: Dennis
Дата:
Сообщение: Re: query does not return after increasing range in 'between' clause
Следующее
От: Ramesh T
Дата:
Сообщение: Re: Deletion