pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erwin Brandstetter <brsaweda@gmail.com>
To: pgsql-admin@postgresql.org
Subject: vacuumdb for a number of tables
Date: Mon, 20 Aug 2007 11:38:10 -0700
Message-ID: <1187635090.741747.9110@d55g2000hsg.googlegroups.com> (raw)

Hi!

I want to vacuum analyze a number of tables in a given database (on
port 5432) from a shell script. There is no need to process the whole
database.
Using
   vacuumdb -d mydb  -t mytab1 -t mytab2 -t mytab3 -fzp 5432;
silently operates on the last tablename given only. 'mytab3' in the
example above.


So, is this the only way to do it, or am I missing something?
   vacuumdb -d mydb  -t mytab1 -fzp 5432
   vacuumdb -d mydb  -t mytab2 -fzp 5432
   vacuumdb -d mydb  -t mytab3 -fzp 5432


Regards
Erwin




Message-ID: <1187635090.741747.9110@d55g2000hsg.googlegroups.com>
Permalink:  ../1187635090.741747.9110@d55g2000hsg.googlegroups.com/
Also on:    postgresql.org/message-id/1187635090.741747.9110@d55g2000hsg.googlegroups.com

 · 

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-admin@postgresql.org
  Cc: brsaweda@gmail.com
  Subject: Re: vacuumdb for a number of tables
  In-Reply-To: <1187635090.741747.9110@d55g2000hsg.googlegroups.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