Re: Can't restore from pg_dump. Authentication failed

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: Greg <gstasica(at)poczta(dot)onet(dot)pl>
Subject: Re: Can't restore from pg_dump. Authentication failed
Date: 2004-05-26 12:56:29
Message-ID: 40B493FD.7040205@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Greg wrote:

> Hi,
>
> Frankly I don't know what should I do more. The problem is:
> I've made a pg_dump from shell like that:
> pg_dump -Upostgres -O -D -Fc --file=baza.sql
>
> Copied the file to new server and from shell executed:
> linux:~ # pg_restore -d ppr -U postgres -i baza.sql
> The result is
> pg_restore: [archiver (db)] connection to database "ppr" failed:
> FATAL: IDENT authentication failed for user "postgres"
>
> I don't know what is going on since I can login to ppr database like
> that
> (in shell)
> su - postgres
> psql -dppr

try in this way:

su - postgres
psql -f baza.sql dppr

Regards
Gaetano Mendola

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Treat 2004-05-26 13:51:41 Re: Clustering Postgres
Previous Message Greg 2004-05-26 11:08:33 Can't restore from pg_dump. Authentication failed