Re: vacuum full for all databases

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Ilia Chipitsine <ilia(at)paramon(dot)ru>, pgsql-general(at)postgresql(dot)org
Subject: Re: vacuum full for all databases
Date: 2004-09-02 10:38:09
Message-ID: Pine.GSO.4.58.0409021437570.13321@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2 Sep 2004, Richard Huxton wrote:

> Ilia Chipitsine wrote:
> > Dear Sirs
> >
> > I'm about to write plpgsql function which will "vacuum full" all existing
> > databases. Below is an example how to get list of databases.
> >
> > What should I write instead of "raise notice" ?
>
> > raise notice ''datname = %'',list.datname;
>
> Something like:
> EXECUTE ''VACUUM FULL '' || list.datname;
>
>

vacuumdb --all

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew T. O'Connor 2004-09-02 11:28:55 Re: Understanding pg_autovacuum CPU Usage
Previous Message Ulrich Wisser 2004-09-02 09:06:05 Foreign key locks