X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 29F89D1B998 for ; Wed, 26 May 2004 10:21:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 52969-07 for ; Wed, 26 May 2004 10:20:51 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 85A93D1B176 for ; Wed, 26 May 2004 10:20:47 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i4QDKlSx090334 for ; Wed, 26 May 2004 13:20:47 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i4QCunYA074423 for pgsql-admin@postgresql.org; Wed, 26 May 2004 12:56:49 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Can't restore from pg_dump. Authentication failed Date: Wed, 26 May 2004 14:56:29 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 32 Message-ID: <40B493FD.7040205@bigfoot.com> References: <4b5a2964.0405260308.de9639d@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: Greg User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en In-Reply-To: <4b5a2964.0405260308.de9639d@posting.google.com> To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/271 X-Sequence-Number: 13587 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