Re: When to vacuum a table? - Mailing list pgsql-performance

From Rod Taylor
Subject Re: When to vacuum a table?
Date
Msg-id 195C9B6B-2018-474C-AA80-239A8CEA37E9@gmail.com
Whole thread Raw
In response to Re: When to vacuum a table?  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Responses Re: When to vacuum a table?  (Andrew Sullivan <ajs@crankycanuck.ca>)
Re: When to vacuum a table?  ("Craig A. James" <cjames@modgraph-usa.com>)
List pgsql-performance
On 26-Nov-06, at 8:11 AM, Steinar H. Gunderson wrote:

> On Sun, Nov 26, 2006 at 09:43:11AM -0300, Marcelo Costa wrote:
>> All its tables constantly manipulated (INSERT, UPDATE, DELETE)
>> they need a
>> VACUUM
>
> Just a minor clarification here: INSERT does not create dead rows,
> only
> UPDATE and DELETE do. Thus, if you only insert rows, you do not
> need to
> vacuum (although you probably need to analyze).

Not entirely true. An insert & rollback will create dead rows. If you
attempt and fail a large number of insert transactions then you will
still need to vacuum.

pgsql-performance by date:

Previous
From: "Marcelo Costa"
Date:
Subject: Re: When to vacuum a table?
Next
From: Andrew Sullivan
Date:
Subject: Re: When to vacuum a table?