pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Iain <iain@mst.co.jp>
Cc: pgsql-admin@postgresql.org
Subject: Re: Routine maintenance - vacuum, analyse and autovacuum
Date: Thu, 29 Jan 2004 11:32:29 -0500
Message-ID: <23606.1075393949@sss.pgh.pa.us> (raw)
In-Reply-To: <000901c3e64e$9611c390$7201a8c0@mst1x5r347kymb>
References: <000901c3e64e$9611c390$7201a8c0@mst1x5r347kymb>

"Iain" <iain@mst.co.jp> writes:
> If we use it, can we stop using nightly vacuums? I'd like to do this if
> possible, since the current version (it's a 7.1 db) of the system runs a
> number of batch processes at night (large deletes and large inserts), and
> finishes with a vacuum analyse. The vacuum takes quite a long time and the
> nightly window is gradually getting tighter and tighter.

Just moving from 7.1 to 7.4 should help, since you can start using plain
vacuum (7.1's vacuum is equivalent to vacuum full IIRC).

> If I start a VACUUM FULL, is it ok to interrupt it part way through? I mean,
> is a partially completed vacuum full worth anything, and is there any danger
> in routinely killing it?

It's crash-safe but you may leave your indexes bigger than before :-(

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <23606.1075393949@sss.pgh.pa.us>
Permalink:  ../23606.1075393949@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23606.1075393949@sss.pgh.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, iain@mst.co.jp
  Subject: Re: Routine maintenance - vacuum, analyse and autovacuum
  In-Reply-To: <23606.1075393949@sss.pgh.pa.us>
  References: <000901c3e64e$9611c390$7201a8c0@mst1x5r347kymb> <23606.1075393949@sss.pgh.pa.us>

* 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