Re: Can't restore from pg_dump. Authentication failed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: gstasica(at)poczta(dot)onet(dot)pl (Greg)
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Can't restore from pg_dump. Authentication failed
Date: 2004-05-31 04:24:10
Message-ID: 6909.1085977450@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

gstasica(at)poczta(dot)onet(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-05-31 04:30:58 Re: Backend crash
Previous Message Tom Lane 2004-05-31 04:21:04 Re: If PostgreSQL was not the best damn database....