Re: No password supplied error when using pg_dump - Mailing list pgsql-novice

From JORGE MALDONADO
Subject Re: No password supplied error when using pg_dump
Date
Msg-id CAAY=A7_h+AOnsjp3dutRR-VZwrgAn5rM5h-dcf=HbnMN5oGyZQ@mail.gmail.com
Whole thread Raw
In response to Re: No password supplied error when using pg_dump  (Stephen Cook <sclists@gmail.com>)
List pgsql-novice
Yes, but it is supposed that "pgpass.conf" is used when "-w" is specified.
I have used this same approach in other server with another DB and it works fine.


On Wed, Nov 16, 2016 at 8:45 PM, Stephen Cook <sclists@gmail.com> wrote:
On 2016-11-16 20:39, JORGE MALDONADO wrote:
> I am trying to run pg_dump to backup my PostgreSQL DB and I am getting a
> "fe_sendauth: no pssword supplied" error message. This is a Windows
> Server 2012 environment and I am issuing pg_dump from a command prompt.
>
> The command is as follows:
> pg_dump -E win1252 -f d:/respaldos/chartsclub/basedatos/CC.backup -F p
> -n chartsclub -h localhost -U postgres -w chartsclub


That "-w" makes pg_dump not ask for a password, so you will get an error
if the user requires password authentication.


-- Stephen



pgsql-novice by date:

Previous
From: Stephen Cook
Date:
Subject: Re: No password supplied error when using pg_dump
Next
From: Tom Lane
Date:
Subject: Re: No password supplied error when using pg_dump