From: Joshua D. Drake <jd@commandprompt.com>
To: Mark Kirkwood <markir@coretech.co.nz>
Cc: Rod Taylor <pg@rbt.ca>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: ken <southerland@samsixedd.com>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Index oddity
Date: Wed, 09 Jun 2004 20:32:10 -0700
Message-ID: <40C7D63A.7050707@commandprompt.com> (raw)
In-Reply-To: <40C7D0C1.5040504@coretech.co.nz>
References: <1086809460.32077.246.camel@pesky>
<1086811930.2539.90.camel@jester>
<1086814209.32077.252.camel@pesky>
<1086814597.2539.92.camel@jester>
<1086814928.32077.259.camel@pesky>
<1086816543.2539.98.camel@jester>
<1086822662.32077.278.camel@pesky>
<40C7BD2A.70604@familyhealth.com.au>
<1086833876.2539.156.camel@jester>
<40C7D0C1.5040504@coretech.co.nz>
>>
> 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@postgresql.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@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jd@commandprompt.com, markir@coretech.co.nz, pg@rbt.ca, chriskl@familyhealth.com.au, southerland@samsixedd.com
Subject: Re: Index oddity
In-Reply-To: <40C7D63A.7050707@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox