Re: Slow execution time when querying view with WHERE clause - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow execution time when querying view with WHERE clause
Date
Msg-id 4593.1101276708@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slow execution time when querying view with WHERE clause  (Jaime Casanova <systemguards@yahoo.com>)
List 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 by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: Slow execution time when querying view with WHERE clause
Next
From: Tom Lane
Date:
Subject: Re: Slow execution time when querying view with WHERE clause