From: Rod Taylor <rod.taylor@gmail.com>
To: Steinar H. Gunderson <sgunderson@bigfoot.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: When to vacuum a table?
Date: Sun, 26 Nov 2006 09:24:29 -0500
Message-ID: <195C9B6B-2018-474C-AA80-239A8CEA37E9@gmail.com> (raw)
In-Reply-To: <20061126131147.GA4089@uio.no>
References: <1164540257.7902.0.camel@panoramix>
<c13f2d590611260443m619cd825x912b262aef5162f9@mail.gmail.com>
<20061126131147.GA4089@uio.no>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: rod.taylor@gmail.com, sgunderson@bigfoot.com
Subject: Re: When to vacuum a table?
In-Reply-To: <195C9B6B-2018-474C-AA80-239A8CEA37E9@gmail.com>
References: <1164540257.7902.0.camel@panoramix> <c13f2d590611260443m619cd825x912b262aef5162f9@mail.gmail.com> <20061126131147.GA4089@uio.no> <195C9B6B-2018-474C-AA80-239A8CEA37E9@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox