X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A30E8D1D7D3 for ; Wed, 19 Nov 2003 11:01:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 51967-02 for ; Wed, 19 Nov 2003 07:01:27 -0400 (AST) Received: from cluster.vento.com.br (mail076.vento.com.br [200.170.17.76]) by svr1.postgresql.org (Postfix) with ESMTP id 9A77AD1D7C5 for ; Wed, 19 Nov 2003 07:01:23 -0400 (AST) Received: from csusppro12.csu.com.br (200.218.35.162) by cluster.vento.com.br (5.5.060) id 3FB208D20004CC4B for pgsql-admin@postgresql.org; Wed, 19 Nov 2003 08:57:48 -0200 Received: by csusppro12.csu.com.br with Internet Mail Service (5.5.2653.19) id ; Wed, 19 Nov 2003 09:04:25 -0300 Message-ID: <31A2FFCFAF95D51189790002A57568FA0DEDE4B5@csusppro12.csu.com.br> 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 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3AE95.0A5F8C60" X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=BAYES_30, EMAIL_ATTRIBUTION, HTML_20_30, NO_REAL_NAME, QUOTED_EMAIL_TEXT X-Spam-Level: X-Archive-Number: 200311/349 X-Sequence-Number: 11336 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C3AE95.0A5F8C60 Content-Type: text/plain; charset="iso-8859-1" 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 ------_=_NextPart_001_01C3AE95.0A5F8C60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RES: [ADMIN] using vacuumdb in crontab

   You can alter yuor pg_hba.conf to permit &qu= ot;trust" local connections instead of "md5". This authentic= ation 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:<= /FONT>
> Sorry if this is a naive question. I'm using postgr= esql 7.2 on Linux
> with password authentication. I wish to issue a vac= cumdb command every
> night via crontab. The problem is that vacuumdb alw= ays prompts for a
> password. How can I pass the password to vacuumdb w= ithout 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 t= o the mailing list cleanly

------_=_NextPart_001_01C3AE95.0A5F8C60--