Re: vacuum full for all databases - Mailing list pgsql-general

From Oleg Bartunov
Subject Re: vacuum full for all databases
Date
Msg-id Pine.GSO.4.58.0409021437570.13321@ra.sai.msu.su
Whole thread Raw
In response to Re: vacuum full for all databases  (Richard Huxton <dev@archonet.com>)
List 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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

pgsql-general by date:

Previous
From: Ulrich Wisser
Date:
Subject: Foreign key locks
Next
From: "Matthew T. O'Connor"
Date:
Subject: Re: Understanding pg_autovacuum CPU Usage