Re: Running vacuum on cron

From: Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Running vacuum on cron
Date: 2001-10-29 19:33:15
Message-ID: 4.2.0.58.20011029202539.00d3c7c0@pop.freesurf.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello Pedro,

Two solutions
1) Give access to PostgreSQL from root user and run commands from
/etc/crontab. Not secure.
2) su postgres and use the crontab command as explained in
http://www.lysator.liu.se/~forsberg/linux/cron.html

Best regards,
Jean-Michel POURE

Hi. Is there any way to put a vacuum and a vacuum analyze (the
>second does everything the first does? Or do I need to use both?) in a cron
>so that it is executed nightly?
>
> Thanks
>
>--
>Pedro Miguel G. Alves
>
>THINK - Tecnologias de Informação
>Av. Defensores de Chaves nº 15 4ºD, 1000-109 Lisboa Portugal
>Tel: +351 21 3590285 Fax: +351 21 3582729
>HomePage: www.think.co.pt
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://archives.postgresql.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mihai Gheorghiu 2001-10-29 19:54:53 Table restructuring with referential integrity
Previous Message Jean-Michel POURE 2001-10-29 19:10:32 Re: Serious performance problem