Re: Database Optimization and Peformance - Mailing list pgsql-admin

From Chris Browne
Subject Re: Database Optimization and Peformance
Date
Msg-id 60d5ahzzd6.fsf@dba2.int.libertyrms.com
Whole thread Raw
In response to Database Optimization and Peformance  (Joe McClintock <joe.mcclintock@antics.com>)
Responses Re: Database Optimization and Peformance
List pgsql-admin
joe.mcclintock@antics.com (Joe McClintock) writes:
> My concern is this, doing a backup and restore does not seem an
> appropriate way manage database fragmentation and performance. The
> documentation I have read indicates that vacuum, analyze reindex are
> the tools to use to de-fragment and optimize the database. In my
> case they did not work and reindexing made query performance
> slightly worse. Am I missing something? As the database grows, will
> I need to essentially rebuild the db on a regular basis?

It oughtn't be necessary.

It seems quite plausible that there are a few tables that are not
being vacuumed nearly often enough.

If you have tables where large portions are modified
(updated/deleted), then you need to run VACUUM quite frequently,
otherwise such tables will be overrun with dead space.

We have tables that we run VACUUM on every five minutes because they
change really heavily.  (200-300 tuples, where we do an update to a
tuple every time a customer is billed.)
--
"cbbrowne","@","ntlug.org"
http://cbbrowne.com/info/finances.html
Why does sour cream have an expiration date?

pgsql-admin by date:

Previous
From: Jeff Frost
Date:
Subject: Re: Database Optimization and Peformance
Next
From: Joe McClintock
Date:
Subject: Re: Database Optimization and Peformance