pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: acoutinho@csu.com.br
To: pgsql-admin@postgresql.org
Subject: RES: using vacuumdb in crontab
Date: Wed, 19 Nov 2003 09:02:44 -0300
Message-ID: <31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br> (raw)



   You can alter yuor pg_hba.conf to permit "trust" local connections
instead of "md5". This authentication you can left to external connetions.
Thi way a think you will execute de vacummdb successfully.

    


-----Mensagem original-----
De: Raquel Vieira [mailto:raquel.vieira@ent.efacec.pt]
Enviada em: Quarta-feira, 19 de Novembro de 2003 06:35
Para: pgsql-admin@postgresql.org
Assunto: Re: [ADMIN] using vacuumdb in crontab


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,

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly

Message-ID: <31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br>
Permalink:  ../31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br/
Also on:    postgresql.org/message-id/31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br

 · 

reply

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: acoutinho@csu.com.br
  Subject: Re: using vacuumdb in crontab
  In-Reply-To: <31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br>
  References: <31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br>

* 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