From: Raquel Vieira <raquel.vieira@ent.efacec.pt>
To: pgsql-admin@postgresql.org
Subject: Re: using vacuumdb in crontab
Date: Wed, 19 Nov 2003 09:34:52 +0000
Message-ID: <03111909345200.01002@rvieira> (raw)
In-Reply-To: <bpa9g4$kun$1@panco.nettuno.it>
References: <bpa9g4$kun$1@panco.nettuno.it>
I'm using the command vaccumdb like this:
su - postgres -c "vacuumdb AgenteSIP"
I don't need to introduce the password for postgres.
I think thos is all you need.
Raquel Vieira
On Monday 17 November 2003 10:53 am, Cris Carampa wrote:
> Sorry if this is a naive question. I'm using postgresql 7.2 on Linux
> with password authentication. I wish to issue a vaccumdb command every
> night via crontab. The problem is that vacuumdb always prompts for a
> password. How can I pass the password to vacuumdb without having to
> manually type it?
>
> Kind regards,
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: raquel.vieira@ent.efacec.pt
Subject: Re: using vacuumdb in crontab
In-Reply-To: <03111909345200.01002@rvieira>
References: <bpa9g4$kun$1@panco.nettuno.it> <03111909345200.01002@rvieira>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox