Re: Slow execution time when querying view with WHERE clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow execution time when querying view with WHERE clause
Дата
Msg-id 28237.1101232445@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Slow execution time when querying view with WHERE clause  (Mike Mascari <mascarm@mascari.com>)
Ответы Re: Slow execution time when querying view with WHERE clause  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-performance
Mike Mascari <mascarm@mascari.com> writes:
> When I query the view with a simple filter, I get:

> explain analyze select * from p_areas where deactive is null;

The problem seems to be here:

>     ->  Seq Scan on _areas a  (cost=0.00..2.48 rows=1 width=163) (actual time=0.037..0.804 rows=48 loops=1)
>           Filter: (deactive IS NULL)

Why is it so completely off about the selectivity of the IS NULL clause?
Are you sure you ANALYZEd this table recently?

            regards, tom lane

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

Предыдущее
От: Cott Lang
Дата:
Сообщение: Re: Some quick Opteron 32-bit/64-bit results
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: memcached and PostgreSQL