Re: Index oddity

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Mark Kirkwood <markir(at)coretech(dot)co(dot)nz>
Cc: Rod Taylor <pg(at)rbt(dot)ca>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, ken <southerland(at)samsixedd(dot)com>, Postgresql Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Index oddity
Date: 2004-06-10 03:32:10
Message-ID: 40C7D63A.7050707@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


>>
> ANALYZE might be producing poor stats due to :
>
> i) many dead tuples or
> ii) high proportion of dead tuples in the first few pages of the table
>
> Does a VACUUM FULL followed by ANALYZE change the estimates (or have
> you tried this already)?
>
> (p.s. - I probably don't qualify for the 'more knowledge' bit either...)

You can also increase your statistics_target which will make ANALYZE
take longer but can help a great deal
with larger data sets.

Sincerely,

Joshua D. Drake

>
> regards
>
> Mark
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2004-06-10 05:01:58 Re: Index oddity
Previous Message Mark Kirkwood 2004-06-10 03:08:49 Re: Index oddity