Re: Custom vacuum - Mailing list pgsql-admin

From Fabrízio de Royes Mello
Subject Re: Custom vacuum
Date
Msg-id AANLkTikucolWEip6lA27dQzcVRCwgmTT_HO3iFVCr196@mail.gmail.com
Whole thread Raw
In response to Custom vacuum  (Fábio Gibon - Comex System<gibon@comexsystem.com.br>)
List pgsql-admin

2010/7/20 Fábio Gibon - Comex System <gibon@comexsystem.com.br>
I want perform VACUUM on specific tables. This tables are result of query in my database (select tablename from mytablesvacuum). I tryed use a cursor
on function, but i receive message that vacuun can't run in function.
 
Any idea to do this?
 

Try this:

psql -U postgres -A -t your_database_name -c "SELECT 'VACUUM '||tablename||';' FROM mytablesvacuum" | psql -U postgres your_database_name


Best regards,
--
Fabrízio de Royes Mello
>> Blog sobre TI: http://fabriziomello.blogspot.com

pgsql-admin by date:

Previous
From: Robert Voinea
Date:
Subject: Re: Weird sorting order
Next
From: a f
Date:
Subject: Restore a backup to a different disk?