Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by postgresql.org (Postfix) with ESMTP id 5B5E9474E4B for ; Thu, 21 Feb 2002 13:15:57 -0500 (EST) Received: from Aidoru (151.38.61.105) by smtp1.libero.it (6.0.040) id 3C67B5A600760287 for pgsql-admin@postgresql.org; Thu, 21 Feb 2002 19:15:43 +0100 Date: Thu, 21 Feb 2002 19:15:45 +0100 From: Simone Tellini To: pgsql-admin@postgresql.org Subject: Re: pg_dumpall and pg_dumps Organization: RealSoft S.r.l. In-Reply-To: <8541.1014314039@sss.pgh.pa.us> References: <66d229f1.0202210729.1414c5cc@posting.google.com> <8541.1014314039@sss.pgh.pa.us> Message-Id: <20020221190831.71BB.TELLINI@areabusiness.it> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.08 X-Archive-Number: 200202/261 X-Sequence-Number: 3414 On Thu, 21 Feb 2002 12:53:59 -0500 Tom Lane wrote: TL> There are known problems in reloading 7.1 dumps into 7.2 if you use TL> mixed-case user names or database names; might that be the source TL> of some of your problems? Are there other problems? while you're at it, there are 2 other problems I've always experienced with pg_dump/pg_dumpall: 1. it fails to restore databases owned by users who aren't allowed to create databases: the dump contains a "CREATE USER x NOCREATEDB" line at the top, then tries to \connect x and CREATE DATABASE y, which obviously fails. It should always use CREATEDB for all users, then remove the privilege at the end of the dump when appropriate. 2. you can't specify username and password on the command line: this makes it impossible to backup automatically all the databases from a cron script if you use password authentication, for instance. It would be nice to have those fixed for good. ;-) -- Simone Tellini E-mail: tellini@areabusiness.it http://www.areabusiness.it