From: Andrew Dunstan <andrew@dunslane.net>
To: Felix Scheicher <mandavi@web.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: queries are fast after dump->restore but slow again after some days dispite vacuum
Date: Thu, 19 Jul 2012 08:38:53 -0400
Message-ID: <5007FFDD.5050103@dunslane.net> (raw)
In-Reply-To: <loom.20120719T133136-384@post.gmane.org>
References: <loom.20120719T133136-384@post.gmane.org>
On 07/19/2012 07:33 AM, Felix Scheicher wrote:
> Hi, I am running a 9.1 server at Ubuntu. When I upgraded to the current version
> I did a pg_dump followed by pg_restore and found that the db was much faster.
> But slowed down again after two days. I did the dump-restore again and could now
> compare the two (actually identical) databases. This is a query of the old one
> directly after a VACUUM ANALYSE:
...
>
> No matter how much I vacuum or analyse the slow db, I don't get it faster.
> I also checked for dead tuples - there are none.
Try running CLUSTER on the relevant tables and see if it makes a
difference. If it does you might want to look into using pg_reorg
periodically.
cheers
andrew
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: andrew@dunslane.net, mandavi@web.de
Subject: Re: queries are fast after dump->restore but slow again after some days dispite vacuum
In-Reply-To: <5007FFDD.5050103@dunslane.net>
* 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