From: Tom Lane <tgl@sss.pgh.pa.us>
To: gstasica@poczta.onet.pl
Cc: pgsql-admin@postgresql.org
Subject: Re: Can't restore from pg_dump. Authentication failed
Date: Mon, 31 May 2004 00:24:10 -0400
Message-ID: <6909.1085977450@sss.pgh.pa.us> (raw)
In-Reply-To: <4b5a2964.0405260308.de9639d@posting.google.com>
References: <4b5a2964.0405260308.de9639d@posting.google.com>
gstasica@poczta.onet.pl (Greg) writes:
> linux:~ # pg_restore -d ppr -U postgres -i baza.sql
> pg_restore: [archiver (db)] connection to database "ppr" failed:
> FATAL: IDENT authentication failed for user "postgres"
You can't use "-U" or similar switches when you've selected IDENT
authentication --- the whole point of that auth method is that your
Postgres userid must be the same as your logged-in Unix userid.
If this is not what you want, select another auth method in
pg_hba.conf.
Or if you want to get tricky, you can play around with an ident
map file. See the documentation.
regards, tom lane
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: tgl@sss.pgh.pa.us, gstasica@poczta.onet.pl
Subject: Re: Can't restore from pg_dump. Authentication failed
In-Reply-To: <6909.1085977450@sss.pgh.pa.us>
References: <4b5a2964.0405260308.de9639d@posting.google.com> <6909.1085977450@sss.pgh.pa.us>
* 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