From: Scott Marlowe <smarlowe@g2switchworks.com>
To: John R Pierce <pierce@hogranch.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres is slow
Date: Tue, 08 Mar 2005 11:53:59 -0600
Message-ID: <1110304438.30529.602.camel@state.g2switchworks.com> (raw)
In-Reply-To: <422DE271.5010701@hogranch.com>
References: <6bf1b0a005030805495ec76763@mail.gmail.com>
<Pine.LNX.4.58.0503081502170.27514@www.forgeahead.hu>
<422DE271.5010701@hogranch.com>
On Tue, 2005-03-08 at 11:35, John R Pierce wrote:
> I've found that 7.x pgsql databases periodically need to be pg_dump'd, dropdb,
> then reloaded from the dump to continue to perform well... on a heavy use web
> server database which includes a busy user forum, I find doing this about 2-3
> times a year keeps things smooth. there may be a better way to clean them up,
> but I've not found it.
The most common cause here was index bloat. dropping / recreating the
indexes usually fixes the performance problems. reindex indexname from
the psql command line works well to do this.
note that some usage patterns that cause catalog indexes to bloat can
only be corrected by reindexing while in single user mode.
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-jdbc@postgresql.org
Cc: smarlowe@g2switchworks.com, pierce@hogranch.com
Subject: Re: Postgres is slow
In-Reply-To: <1110304438.30529.602.camel@state.g2switchworks.com>
References: <6bf1b0a005030805495ec76763@mail.gmail.com> <Pine.LNX.4.58.0503081502170.27514@www.forgeahead.hu> <422DE271.5010701@hogranch.com> <1110304438.30529.602.camel@state.g2switchworks.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