From: | Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com> |
---|---|
To: | isabella(dot)ghiurea(at)nrc-cnrc(dot)gc(dot)ca |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: vacuumdb for schema only |
Date: | 2010-09-08 00:17:25 |
Message-ID: | AANLkTinMzvVZAvADjnH-2a=ph2eZSJQvo80WLetqDH0Y@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
2010/9/7 Isabella Ghiurea <isabella(dot)ghiurea(at)nrc-cnrc(dot)gc(dot)ca>
> Hi List,
> I would like to know if there is an option to run full vacuumdb for a
> specific schema only, I see there is option for tables or whole db .
>
>
No, but you can do like this using "psql" :
psql -U postgres -t -A -c "select 'VACUUM
'||table_schema||'.'||table_name||';' from information_schema.tables where
table_schema = 'public'" bdteste | psql -U postgres bdteste
The example above will run VACUUM to all tables in schema called 'public' in
'bdteste' database.
Best regards,
--
Fabrízio de Royes Mello
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
From | Date | Subject | |
---|---|---|---|
Next Message | Jesper Krogh | 2010-09-08 04:58:42 | Re: [NOVICE] - SAN/NAS/DAS - Need advises |
Previous Message | Isabella Ghiurea | 2010-09-07 22:39:05 | vacuumdb for schema only |