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 02391D1BB6B for ; Thu, 4 Mar 2004 22:48:18 +0000 (GMT) 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 77045-03 for ; Thu, 4 Mar 2004 18:48:16 -0400 (AST) Received: from fedk0910.ferring.com (fedk0905.ferring.com [213.237.141.20]) by svr1.postgresql.org (Postfix) with ESMTP id CE314D1BB43 for ; Thu, 4 Mar 2004 18:48:12 -0400 (AST) Received: from fedk0005.Fic.ferring.com (unverified) by fedk0910.ferring.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Thu, 4 Mar 2004 23:47:33 +0100 Received: from ferring.com (10.20.100.63 [10.20.100.63]) by fedk0005.Fic.ferring.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id D9MHWDBK; Thu, 4 Mar 2004 23:48:07 +0100 Message-ID: <4047B22C.7070907@ferring.com> Date: Thu, 04 Mar 2004 14:48:12 -0800 From: Kemin Zhou User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin Subject: pg_restore and users Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/25 X-Sequence-Number: 12595 Dear all, I normally don't do a lot of pg_dump and pg_restore. And it is not easy to experiment with this. Just trying to clarify something. While I was using a user name that have rights to createdb, createuser to restore the database pg_restore -d mydb mydb.tar the program exited with error message: user abs does not exist. then I created that user with the command createuser abc. the restore can be finished (actually I have a few users, I have to do all of them). 1. Do I have such problem if I use the super user POSTGRES? 2. Is the database intended to store a lot of users or only a few? If you have a lot users and you forgot about them, it could be very difficult to restore the database. Anyone can tell me about the normal way of dealing with this. Or I am doing something wrong. Kemin ********************************************************************** Proprietary or confidential information belonging to Ferring Holding SA or to one of its affiliated companies may be contained in the message. If you are not the addressee indicated in this message (or responsible for the delivery of the message to such person), please do not copy or deliver this message to anyone. In such case, please destroy this message and notify the sender by reply e-mail. Please advise the sender immediately if you or your employer do not consent to e-mail for messages of this kind. Opinions, conclusions and other information in this message represent the opinion of the sender and do not necessarily represent or reflect the views and opinions of Ferring. **********************************************************************