X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0AAF2475B8A for ; Thu, 13 Feb 2003 21:04:50 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 59CAB475AFA for ; Thu, 13 Feb 2003 21:04:49 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h1E24q5u003201; Thu, 13 Feb 2003 21:04:52 -0500 (EST) To: Laura Conrad Cc: pgsql-admin@postgresql.org Subject: Re: How to restore from pg_dumpall output In-reply-to: <874r78uvm1.fsf@debian.laymusic.org> References: <874r78uvm1.fsf@debian.laymusic.org> Comments: In-reply-to Laura Conrad message dated "13 Feb 2003 09:02:30 -0500" Date: Thu, 13 Feb 2003 21:04:52 -0500 Message-ID: <3200.1045188292@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/209 X-Sequence-Number: 7407 Laura Conrad writes: > pg_dumpall -p 8050 >/tmp/db.sql > I then tried to restore (again as the postgres user), as documented in > the pg_dumpall man page: > psql -f /tmp/db.sql template1 > It does a few things, and then says: > psql:/tmp/db.sql:16: \connect: FATAL 1: IDENT authentication > failed for user "bostonre" I believe this will work better if you use "-X use-set-session-authorization" to pg_dump (which should be the default, but isn't yet). Without that, you need an authorization configuration that will let you connect as someone else --- which IDENT won't, superuser or no. (You could set up an ident map to let that happen, but it'd be tedious if you have lots of users to keep track of.) regards, tom lane