Re: Dump / restore for optimization? - Mailing list pgsql-general

From Bill Moran
Subject Re: Dump / restore for optimization?
Date
Msg-id 20040630230813.589ce2ea.wmoran@potentialtech.com
Whole thread Raw
In response to Dump / restore for optimization?  (lec <limec@streamyx.com>)
List pgsql-general
lec <limec@streamyx.com> wrote:

> I always have to dump & restore to make a database (which is in use for
> a few months) efficient again.  I have scheduled nightly vacuum analyze,
> but only dump & restore can make the database efficient again.  Has
> anyone experience this?

You might benefit from identifying the tables that are having the biggest
performance problems, identifying the keys that are most commonly used, and
using CLUSTER to physically reorder those tables on a set schedule.  This
is actually a lot like dump/restore (since it physically recreates the
tables on disk) but should take less time (especially if you can narrow
the problem down to only a few tables out of your entire db)

This may or may not help, but it's something to try.

--
Bill Moran
Potential Technologies
http://www.potentialtech.com

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: backups
Next
From: mike g
Date:
Subject: Re: Problems with Postgres and PHP from command line