Re: Slow execution time when querying view with WHERE clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow execution time when querying view with WHERE clause
Дата
Msg-id 4593.1101276708@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Slow execution time when querying view with WHERE clause  (Jaime Casanova <systemguards@yahoo.com>)
Список pgsql-performance
Jaime Casanova <systemguards@yahoo.com> writes:
> Tom Lane wrote:
>> Why is it so completely off about the selectivity
>> of the IS NULL clause?

> null values are not indexable, is that your question?

Uh, no.  The problem is that the IS NULL condition matched all 48 rows
of the table, but the planner thought it would only match one row.  This
is definitely covered by the pg_stats statistics, and with only 48 live
rows there couldn't possibly have been any sampling error, so what the
heck went wrong there?

            regards, tom lane

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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: Slow execution time when querying view with WHERE clause
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Slow execution time when querying view with WHERE clause