From: Daniel Rubio <drubior@tinet.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump still requires password
Date: Wed, 12 Nov 2003 15:04:01 +0100
Message-ID: <3FB23DD1.3090301@tinet.org> (raw)
References: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com>
> When I issue the command it is asking for passwd which I cannot used for
> cronjob to run at midnight.
Execute the task as user postgres (crontab for postgres, not root) and
modify pg_hba.conf to permit access in trust mode (without asking for
password)
e.g : local all postgres trust
You can subtitute postgres for the user you need and the database too
(if the dump is not pg_dumpall)
>
>
>
> Please help. How I do solve this problem.
>
>
>
> I have posted this earlier the suggestion was to use pgpass but that
> does not help. What other way can I achive this.
>
>
>
> Regards,
>
> Ganesan
>
>
>
--
********************************************************
Daniel Rubio Rodríguez
OASI (Organisme Autònom Per la Societat de la Informació)
c/ Assalt, 12
43003 - Tarragona
Tef.: 977.244.007 - Fax: 977.224.517
e-mail: drubio@oasi.org
********************************************************
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: drubior@tinet.org
Subject: Re: pg_dump still requires password
In-Reply-To: <3FB23DD1.3090301@tinet.org>
References: <002901c3a91a$a696a440$1300a8c0@headquarters.mq.com> <3FB23DD1.3090301@tinet.org>
* 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