pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <markir@coretech.co.nz>
To: 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: Thu, 10 Jun 2004 15:08:49 +1200
Message-ID: <40C7D0C1.5040504@coretech.co.nz> (raw)
In-Reply-To: <1086833876.2539.156.camel@jester>
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>



Rod Taylor wrote:

>
>The big problem is a very poor estimate (off by a couple orders of
>magnitude). I was hoping someone with more knowledge in fixing those
>would jump in.
>
>
>  
>
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...)

regards

Mark



view thread (12+ messages)  latest in thread

Message-ID: <40C7D0C1.5040504@coretech.co.nz>
Permalink:  ../40C7D0C1.5040504@coretech.co.nz/
Also on:    postgresql.org/message-id/40C7D0C1.5040504@coretech.co.nz

 · 

reply

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: markir@coretech.co.nz, pg@rbt.ca, chriskl@familyhealth.com.au, southerland@samsixedd.com
  Subject: Re: Index oddity
  In-Reply-To: <40C7D0C1.5040504@coretech.co.nz>

* 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