pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Bill Chandler <billybobc1210@yahoo.com>
Cc: pgsql-perform <pgsql-performance@postgresql.org>
Subject: Re: Question on vacuumdb
Date: Mon, 18 Apr 2005 14:58:19 -0500
Message-ID: <20050418195819.GB4961@wolff.to> (raw)
In-Reply-To: <20050418192708.51229.qmail@web51407.mail.yahoo.com>
References: <20050418192708.51229.qmail@web51407.mail.yahoo.com>

On Mon, Apr 18, 2005 at 12:27:08 -0700,
  Bill Chandler <billybobc1210@yahoo.com> wrote:
> All,
> 
> If I run the command "vacuumdb mydb" I understand that
> it does some disk space recovery (but not as much as
> "vacuumdb --full mydb").  

You are better off not using vacuum full unless some unusual event has
bloated your database. By running normal vacuums often enough (and with
a large enough fsm setting) your database should reach a steady state size.

> Question: if I run the command "vacuumdb --analyze
> mydb" does it still do the aforementioned disk space
> recovery AS WELL AS update query planning statistics? 
> Or are those two completely separate operations
> requiring separate invocations of 'vacuumdb'.

It is better to do both with one command.



view thread (2+ messages)

Message-ID: <20050418195819.GB4961@wolff.to>
Permalink:  ../20050418195819.GB4961@wolff.to/
Also on:    postgresql.org/message-id/20050418195819.GB4961@wolff.to

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bruno@wolff.to, billybobc1210@yahoo.com
  Subject: Re: Question on vacuumdb
  In-Reply-To: <20050418195819.GB4961@wolff.to>

* 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