X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C80CA474E61 for ; Fri, 14 Feb 2003 09:21:27 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 536C3474E5C for ; Fri, 14 Feb 2003 09:21:27 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 2AA3343A952; Fri, 14 Feb 2003 09:21:27 -0500 (EST) X-Newsgroups: comp.databases.postgresql.admin Subject: Re: How to restore from pg_dumpall output References: <3200.1045188292@sss.pgh.pa.us> X-Face: #0j-Ll[fajrfupWYMv&wa\m7!Sh=&3; JE-_&M-L,ULz(aE8iu%m1SHa5wG.V{3B:Fdnd/T# O -}0pPGYw%t1z`o&T_c=)p8l[}7R\={[@B*Jyj*.L4 hnJ*AXb From: Laura Conrad Date: 14 Feb 2003 09:04:37 -0500 Message-ID: <87znozq7pm.fsf@debian.laymusic.org> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 49 X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/229 X-Sequence-Number: 7427 >>>>> "Tom" == Tom Lane writes: Tom> 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" Tom> I believe this will work better if you use "-X Tom> use-set-session-authorization" to pg_dump (which should be Tom> the default, but isn't yet). I tried that, but I still get the same error out of psql, although the pg_dumpall output now says: SET SESSION AUTHORIZATION bostonre; instead of: \connect - bostonre Tom> Without that, you need an authorization configuration that Tom> will let you connect as someone else --- which IDENT won't, Tom> superuser or no. (You could set up an ident map to let that Tom> happen, but it'd be tedious if you have lots of users to keep Tom> track of.) There are only 2. So I tried doing that, but my first guess on how didn't work. But to make that guess, I had to look at pg_hba.conf and it had lots of useful stuff in it. I decided it wasn't going to kill me to just trust everyone on my local machine for 5 minutes, so I did that. Not the kosher thing for a real database administrator to do, but this is my home machine, and the dog doesn't know how to log on. So I have my database back -- thanks for the help. -- Laura (mailto:lconrad@laymusic.org , http://www.laymusic.org/ ) (617) 661-8097 fax: (801) 365-6574 233 Broadway, Cambridge, MA 02139