Unix Technical Forum

vacuumdb for a number of tables

This is a discussion on vacuumdb for a number of tables within the pgsql Admins forums, part of the PostgreSQL category; --> Hi! I want to vacuum analyze a number of tables in a given database (on port 5432) from a ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:08 AM
Erwin Brandstetter
 
Posts: n/a
Default vacuumdb for a number of tables

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com