vacuumdb for a number of tables

Поиск
Список
Период
Сортировка
От Erwin Brandstetter
Тема vacuumdb for a number of tables
Дата
Msg-id 1187635090.741747.9110@d55g2000hsg.googlegroups.com
обсуждение исходный текст
Список pgsql-admin
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


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: how to call sql code without function
Следующее
От: Juliann Meyer
Дата:
Сообщение: vacuum questions