Re: Dump / restore for optimization?

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: Dump / restore for optimization?
Дата
Msg-id 20040630230813.589ce2ea.wmoran@potentialtech.com
обсуждение исходный текст
Ответ на Dump / restore for optimization?  (lec <limec@streamyx.com>)
Список 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 по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: backups
Следующее
От: mike g
Дата:
Сообщение: Re: Problems with Postgres and PHP from command line