Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id F2FBF475864 for ; Tue, 2 Jul 2002 07:18:25 -0400 (EDT) Mailbox-Line: From pdeguise@bigpond.net.au Tue Jul 2 07:18:25 2002 Received: from mta01ps.bigpond.com (mta01ps.bigpond.com [144.135.25.133]) by postgresql.org (Postfix) with ESMTP id 5C59247545D for ; Tue, 2 Jul 2002 07:18:22 -0400 (EDT) Received: from belle ([144.135.25.78]) by mta01ps.bigpond.com (Netscape Messaging Server 4.15 mta01ps Apr 29 2002 13:22:02) with SMTP id GYMCQN00.5SQ; Tue, 2 Jul 2002 21:18:23 +1000 Received: from CPE-144-137-89-175.nsw.bigpond.net.au ([144.137.89.175]) by PSMAM04.mailsvc.email.bigpond.com(MailRouter V3.0n 92/27791151); 02 Jul 2002 21:18:23 Subject: pg_dumpall -> database import -> user problem. From: Preston de Guise To: Postgres Admin Mailing List Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: X-Mailer: Ximian Evolution 1.1.0.99 (Preview Release) Date: 02 Jul 2002 21:18:44 +1000 Message-Id: <1025608724.30663.25.camel@belle> Mime-Version: 1.0 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.30 X-Spam-Level: X-Archive-Number: 200207/21 X-Sequence-Number: 4708 Hi, I've got a problem which I can't find any answers for in the archives (from simple searches at least) or on Google. I'm running Postgres 7.1.3 on RedHat Linux 7.2. What I need to be able to do is this: 1. Dump a production database; 2. Create a development database; 3. Import the production database for testing and further development. The procedure that I'm trying is: pg_dump production > production.dump dropdb development createdb development psql development -f production.dump The problem that I'm having is that user permissions aren't being ported across. Users from the production database can connect to the development database. However, when they attempt to select from tables (or do anything else that they have permissions to in the production database) they are told "permission_denied". It seems that the database administrator has to go into the development database and re-issue all the grant (access) commands. Is this to be expected? I haven't seen anything as yet in the createdb or pg_dump manuals that seems to reflect this behaviour - indeed, it seems that it should be working _unless_ I specify a "--no-acl". Any thoughts on this would be appreciated. Apologies if this is answered in the archives - I did look though and couldn't find anything ;) Cheers, -Preston de Guise. -- '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.