From: Ricardo Dias Marques <ricmarques@spamcop.net>
To: pgsql-admin@postgresql.org
Subject: pg_dump backup problems with password authentication
Date: Thu, 07 Dec 2000 13:07:17 +0000
Message-ID: <3A2F8B85.DF782291@spamcop.net> (raw)
Hi all,
I am using PostgreSQL 7.0.2 in RedHat Linux 6.2
I have changed the default authentication, in the pg_hba.conf
file, from trust to password.
Unfortunately, this is giving me problems with pg_dump
I am trying to do a copy of just one database (with all its
tables, primary and foreign keys, check clauses, triggers, etc).
So, I followed the instructions at:
http://postgresql.rmplc.co.uk/users-lounge/docs/7.0/admin/manage-ag1655.htm
and did a pg_dump dbname > dbname.pgdump
(I replaced dbname by my database name, obviously)
Because I have password authentication set, I get an
error message:
Connection to database 'dbname' failed.
fe_sendauth: no password supplied
So, I did a man pg_dump and found out that -u would prompt
for username and password, and -v would give a verbose output.
And so I did:
pg_dump -u -v dbname > dbname.pgdump
The problem is when I press the ENTER key on that command:
it just sits there! Eventually, I have to hit CTRL+C to get out.
Can any kind soul explain me what I am doing wrong? :(
Thanks in advance,
Ricardo Dias Marques
ricmarques@spamcop.net
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: ricmarques@spamcop.net
Subject: Re: pg_dump backup problems with password authentication
In-Reply-To: <3A2F8B85.DF782291@spamcop.net>
References: <3A2F8B85.DF782291@spamcop.net>
* 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