Re: PostgreSQL 8.2.3 VACUUM Timings/Performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bruce McAlister" <bruce(dot)mcalister(at)blueface(dot)ie>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: PostgreSQL 8.2.3 VACUUM Timings/Performance
Date: 2007-03-05 16:11:08
Message-ID: 19106.1173111068@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

"Bruce McAlister" <bruce(dot)mcalister(at)blueface(dot)ie> writes:
> [1] AutoVacuum runs during the day over the entire PostgreSQL cluster,

Good, but evidently you need to make it more aggressive.

> [2] A Vacuum Full Verbose is run during our least busy period (generally
> 03:30) against the Database,

> [3] A Re-Index on the table is performed,

> [4] A Cluster on the table is performed against the most used index,

> [5] A Vacuum Analyze Verbose is run against the database.

That is enormous overkill. Steps 2 and 3 are a 100% waste of time if
you are going to cluster in step 4. Just do the CLUSTER and then
ANALYZE (or VACUUM ANALYZE if you really must, but the value is marginal).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2007-03-05 16:14:15 Re: Why don't dumped files parse in pgAdmin3 query editor?
Previous Message Raymond O'Donnell 2007-03-05 16:06:23 Re: Why don't dumped files parse in pgAdmin3 query editor?

Browse pgsql-performance by date

  From Date Subject
Next Message Heikki Linnakangas 2007-03-05 16:25:27 Re: PostgreSQL 8.2.3 VACUUM Timings/Performance
Previous Message Tom Lane 2007-03-05 16:02:31 Re: Aggressive freezing in lazy-vacuum