X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A17BD5E4733 for ; Mon, 23 Aug 2004 04:56:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79287-10 for ; Mon, 23 Aug 2004 07:56:52 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 269C35E472A for ; Mon, 23 Aug 2004 04:56:51 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1Bz9hE-000AzI-0Y; Mon, 23 Aug 2004 07:56:52 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 93477169F8; Mon, 23 Aug 2004 08:56:51 +0100 (BST) Message-ID: <4129A343.5020702@archonet.com> Date: Mon, 23 Aug 2004 08:56:51 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: worik@noggon.com Cc: pgsql-sql@postgresql.org Subject: Re: pg_dump/pg_restore question References: <41295D87.6080806@noggon.com> In-Reply-To: <41295D87.6080806@noggon.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/239 X-Sequence-Number: 18736 Worik wrote: > Freinds > > I am new to this list, and this is my first message. > > I hope this is the correct forum, and the question not too stupid/simple. > > I have a database on a debian stable system... > > dpkg -l postgresql > [snip] > ii postgresql 7.2.1-2woody5 Object-relational SQL database, > descended fr > > When I dump a database (as from the man page for pg_restore) > pg_dump mydb > mydb.out > > OK. Get an SQL dump in mydb.out > > Create a new database.... > > creatdb myotherdb > > Load the dump.... > > psql -d myotherdb -f mydb.out > psql:mydb.out:4: \connect: FATAL 1: IDENT authentication failed for > user "postgres" > > I have tried adding the line > host all 127.0.0.1 255.255.255.255 trust > > to pg_hba.conf but it makes no difference. Almost correct. You're not actually connecting over IP at all, you'll be using unix-sockets. Try a line something like: local all all trust Or, since you're on 7.2 probably local all trust HTH -- Richard Huxton Archonet Ltd