Re: Problems with adding a is not null to a query. - Mailing list pgsql-bugs

From Robert Haas
Subject Re: Problems with adding a is not null to a query.
Date
Msg-id AANLkTi=6wYtWRURpUtBgJcZEMPGUne+emSmxL_sGbP6y@mail.gmail.com
Whole thread Raw
In response to Re: Problems with adding a is not null to a query.  (Tim Uckun <timuckun@gmail.com>)
Responses Re: Problems with adding a is not null to a query.  (Tim Uckun <timuckun@gmail.com>)
List pgsql-bugs
On Sun, Jan 16, 2011 at 5:47 PM, Tim Uckun <timuckun@gmail.com> wrote:
>> Hmm, autovacuum *should* have been keeping track of things for you,
>> but it might still be worth doing a manual ANALYZE against that table
>> to see if the estimated rowcount changes. =A0If not, you'll need to raise
>> the statistics target for that column (and again ANALYZE).
>
>
> The analyze finished. I re-ran the explain it was still taking a very
> long time. I stopped it eventually.

Hmm.  What do you get for:

SELECT relname, pg_relation_size(oid), reltuples, relpages FROM
pg_class WHERE relname IN ('consolidated_urls',
'consolidated_urls_pkey');

--=20
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-bugs by date:

Previous
From: Tim Uckun
Date:
Subject: Re: Problems with adding a is not null to a query.
Next
From: Tim Uckun
Date:
Subject: Re: Problems with adding a is not null to a query.