Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 693294758DC for ; Sat, 6 Jul 2002 03:42:43 -0400 (EDT) Mailbox-Line: From unsane@idl.com.au Sat Jul 6 03:42:43 2002 Received: from mta01bw.bigpond.com (mta01bw.bigpond.com [139.134.6.78]) by postgresql.org (Postfix) with ESMTP id DB96047586C for ; Sat, 6 Jul 2002 03:42:40 -0400 (EDT) Received: from belle ([144.135.24.69]) by mta01bw.bigpond.com (Netscape Messaging Server 4.15 mta01bw May 23 2002 23:53:28) with SMTP id GYTHF300.7HY; Sat, 6 Jul 2002 17:42:39 +1000 Received: from CPE-144-137-77-238.nsw.bigpond.net.au ([144.137.77.238]) by bwmam01.mailsvc.email.bigpond.com(MailRouter V3.0n 2/3805048); 06 Jul 2002 17:42:39 Subject: Re: pg_dumpall -> database import -> user problem. From: Preston de Guise To: Tom Lane Cc: Postgres Admin Mailing List In-Reply-To: <12551.1025617385@sss.pgh.pa.us> References: <1025609263.30666.28.camel@belle> <12551.1025617385@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: X-Mailer: Ximian Evolution 1.1.0.99 (Preview Release) Date: 06 Jul 2002 17:41:35 +1000 Message-Id: <1025941295.3404.36.camel@belle> Mime-Version: 1.0 X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.30 X-Spam-Level: X-Archive-Number: 200207/102 X-Sequence-Number: 4788 On Tue, 2002-07-02 at 23:43, Tom Lane wrote: > Preston de Guise writes: > > The procedure that I'm trying is: > > > pg_dump production > production.dump > > dropdb development > > createdb development > > psql development -f production.dump > > This looks okay to me. I assume you are running the psql session as the > database superuser? Does it produce any messages (other than CREATE, > GRANT, etc)? I've run it as postgres and the user account that created the production and development databases. Both times it has the same effect. > Have you tried looking at the dump file to see what it's actually doing? Yup - it clearly has the "grant..." statements to the userids. (Note - not the usernames, but to the userids.) The userids in the dump statements match those in the pg_shadow table and the grant statements generate no errors. FWIW, I've always had this problem - have tried this technique before using Postgres 7.0 and the last 6.x release. I'm starting to wonder whether it's designed to detect users called "preston" and screw them around ... lol. Cheers, -Preston. -- 'There are no secrets. The networked market knows more than companies do about their own products. And whether the news is good or bad, they tell everyone.' http://www.cluetrain.com Receipt of this email does not constitute permission to add the originating address to any email list.