pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Cain <cain@cshl.org>
Cc: pgsql-performance@postgresql.org, gmod schema <gmod-schema@lists.sourceforge.net>
Subject: Re: performace problem after VACUUM ANALYZE
Date: Fri, 14 Feb 2003 12:00:18 -0500
Message-ID: <8000.1045242018@sss.pgh.pa.us> (raw)
In-Reply-To: <1045241040.1486.600.camel@localhost.localdomain>
References: <1045241040.1486.600.camel@localhost.localdomain>

Scott Cain <cain@cshl.org> writes:
> [ much stuff ]

Could we see EXPLAIN ANALYZE, not just EXPLAIN, output for all these
alternatives?  Your question boils down to "why is the planner
misestimating these queries" ... which is a difficult question to
answer when given only the estimates and not the reality.

A suggestion though is that you might need to raise the statistics
target on the indexed columns, so that ANALYZE will collect
finer-grained statistics.  (See ALTER TABLE ... SET STATISTICS.)
Try booting it up to 100 (from the default 10), re-analyze, and
then see if/how the plans change.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <8000.1045242018@sss.pgh.pa.us>
Permalink:  ../8000.1045242018@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8000.1045242018@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cain@cshl.org, gmod-schema@lists.sourceforge.net
  Subject: Re: performace problem after VACUUM ANALYZE
  In-Reply-To: <8000.1045242018@sss.pgh.pa.us>
  References: <1045241040.1486.600.camel@localhost.localdomain> <8000.1045242018@sss.pgh.pa.us>

* 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