From: hubert depesz lubaczewski <depesz@gmail.com>
To: dwinner-lists@att.net
Cc: pgsql-performance@postgresql.org
Subject: Re: slow queries after ANALYZE
Date: Sat, 12 Nov 2005 10:14:49 +0100
Message-ID: <9e4684ce0511120114m32254efen2faa6563146db202@mail.gmail.com> (raw)
In-Reply-To: <4374EDF1.5010709@att.net>
References: <4374EDF1.5010709@att.net>
On 11/11/05, DW <dwinner-lists@att.net> wrote:
>
> I'm perplexed. I'm trying to find out why some queries are taking a long
> time, and have found that after running analyze, one particular query
> becomes slow.
>
i have had exactly the same problem very recently.
what helped? increasing statistics on come column.
which ones?
make:
explain analyze <your select>;
and check in which situations you gget the biggest change of "estiamted
rows" and "actual rows".
then check what this particular part of your statement is touching, and
increase appropriate statistics.
depesz
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: depesz@gmail.com, dwinner-lists@att.net
Subject: Re: slow queries after ANALYZE
In-Reply-To: <9e4684ce0511120114m32254efen2faa6563146db202@mail.gmail.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