pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Narasimha Murthy-VRFX87 <VRFX87@motorola.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Clarification required: autovacuum and VACUUM command mode
Date: Fri, 14 May 2010 08:40:20 -0500
Message-ID: <4BED0C74020000250003170D@gw.wicourts.gov> (raw)
In-Reply-To: <58FEF525AF1E664D9503ACDEAC926BBC03BE7D62@ZMY16EXM66.ds.mot.com>
References: <4BED4A2E.2090507@lelarge.info>
	<58FEF525AF1E664D9503ACDEAC926BBC03BE7D62@ZMY16EXM66.ds.mot.com>

"Narasimha Murthy-VRFX87" <VRFX87@motorola.com> wrote:
> Guillaume Lelarge <guillaume@lelarge.info> wrote:
>> Le 14/05/2010 14:52, Narasimha Murthy-VRFX87 a écrit :
 
>>> VACUUM command works either in plain mode (if we do not specify
>>> FULL) or in FULL mode. When autovacuum is enabled, what mode
>>> does it run the VACUUM command (in plain mode or in FULL mode)?
>> 
>> In plain mode.
 
> How do I check this? Please clarify.
 
http://www.postgresql.org/docs/8.2/interactive/routine-vacuuming.html#VACUUM-FOR-SPACE-RECOVERY
 
Since VACUUM FULL is not recommended for routine use, it would
hardly make sense to use it for autovacuum.  If you want to confirm,
try selecting from a table while autovacuum is vacuuming it -- since
VACUUM FULL locks the table against all other uses, the ability to
select proves it's not VACUUM FULL.
 
By the way, I hope you're not considering scheduling regular VACUUM
FULL runs against your database.  You would wind up regretting that.
If you don't believe that, I recommend that you reread the
above-cited section until you're convinced.
 
-Kevin



view thread (12+ messages)  latest in thread

Message-ID: <4BED0C74020000250003170D@gw.wicourts.gov>
Permalink:  ../4BED0C74020000250003170D@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4BED0C74020000250003170D@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, VRFX87@motorola.com
  Subject: Re: Clarification required: autovacuum and VACUUM command mode
  In-Reply-To: <4BED0C74020000250003170D@gw.wicourts.gov>
  References: <4BED4A2E.2090507@lelarge.info> <58FEF525AF1E664D9503ACDEAC926BBC03BE7D62@ZMY16EXM66.ds.mot.com> <4BED0C74020000250003170D@gw.wicourts.gov>

* 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