Re: Slow execution time when querying view with WHERE clause

Поиск
Список
Период
Сортировка
Искать
От
Mike Mascari
Тема
Re: Slow execution time when querying view with WHERE clause
Дата
Msg-id
41A51061.30805@mascari.com
Ответ на
Список
Дерево обсуждения
Slow execution time when querying view with WHERE clause Mike Mascari <mascarm@mascari.com>
Re: Slow execution time when querying view with WHERE clause Tom Lane <tgl@sss.pgh.pa.us>
Re: Slow execution time when querying view with WHERE clause Mike Mascari <mascarm@mascari.com>
Re: Slow execution time when querying view with WHERE clause Jaime Casanova <systemguards@yahoo.com>
Re: Slow execution time when querying view with WHERE clause Tom Lane <tgl@sss.pgh.pa.us>
Re: Slow execution time when querying view with WHERE clause Mike Mascari <mascarm@mascari.com>
Tom Lane wrote:
> Um ... doh ... analyze.c about line 1550:
> 
>     /* We can only compute valid stats if we found some non-null values. */
>     if (nonnull_cnt > 0)
>        ...
> 
> There's a bit of an epistemological issue here: if we didn't actually
> find any nonnull values in our sample, is it legitimate to assume that
> the column is entirely null?  On the other hand, if we find only "3" in
> our sample we will happily assume the column contains only "3", so I
> dunno why we are discriminating against null.  This seems like a case
> that just hasn't come up before.

Will this discriminatory policy toward null end for 8.0?

Mike Mascari


В списке pgsql-performance по дате отправления
От: gnari
Дата:
Сообщение: Re: FW: Index usage
От: Steinar H. Gunderson
Дата:
Сообщение: Re: Postgres vs. MySQL
FAQ