From: Franck Routier <franck.routier@axege.com>
To: pgsql-performance@postgresql.org
Subject: Re: Postgresql performance degrading... how to diagnose the root cause
Date: Tue, 16 Apr 2013 11:16:39 +0200
Message-ID: <516D16F7.10706@axege.com> (raw)
In-Reply-To: <5155A33A.4090000@axege.com>
References: <5155A33A.4090000@axege.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Le 29/03/2013 15:20, Franck Routier a écrit :
> Hi,
>
> I have a postgresql database (8.4) running in production whose
> performance is degrading.
> There is no single query that underperforms, all queries do.
> Another interesting point is that a generic performance test
> (https://launchpad.net/tpc-b) gives mediocre peformance when run on
> the database, BUT the same test on a newly created database, on the
> same pg cluster, on the same tablespace, does perform good.
>
> So the problem seems to be limited to this database, even on newly
> created tables...
>
> What should I check to find the culprit of this degrading performance ?
>
> Franck
>
Just for the record, the problem turned out to be a too high
default_statistics_target (4000) that was causing the planner to take up
to seconds just to evaluate the better plan (probably in eqjoinsel() ).
See thread titled "What happens between end of explain analyze and end
of query execution ?" on this list for details.
Thanks again to those who responded.
Franck
Attachments:
smime.p7s (application/pkcs7-signature, 4.4K) download
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: franck.routier@axege.com
Subject: Re: Postgresql performance degrading... how to diagnose the root cause
In-Reply-To: <516D16F7.10706@axege.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