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 74DC0D1B1CD for ; Mon, 31 May 2004 01:24:21 -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 32855-07 for ; Mon, 31 May 2004 01:24:20 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7118FD1B1BD for ; Mon, 31 May 2004 01:24:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i4V4OApQ006910; Mon, 31 May 2004 00:24:10 -0400 (EDT) To: gstasica@poczta.onet.pl (Greg) Cc: pgsql-admin@postgresql.org Subject: Re: Can't restore from pg_dump. Authentication failed In-reply-to: <4b5a2964.0405260308.de9639d@posting.google.com> References: <4b5a2964.0405260308.de9639d@posting.google.com> Comments: In-reply-to gstasica@poczta.onet.pl (Greg) message dated "26 May 2004 04:08:33 -0700" Date: Mon, 31 May 2004 00:24:10 -0400 Message-ID: <6909.1085977450@sss.pgh.pa.us> From: Tom Lane 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/331 X-Sequence-Number: 13647 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