Re: using vacuumdb in crontab

From: Raquel Vieira <raquel(dot)vieira(at)ent(dot)efacec(dot)pt>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: using vacuumdb in crontab
Date: 2003-11-19 09:34:52
Message-ID: 03111909345200.01002@rvieira
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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,

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tomasz Spyrczak 2003-11-19 10:00:25 Automatic null values convertion in INSERT and WHERE statements
Previous Message Sander Steffann 2003-11-19 09:29:21 Re: Replicate PostgreSQL with rsync