Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id CC512475481 for ; Thu, 25 Jul 2002 14:22:23 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g6PIMCVk019930; Thu, 25 Jul 2002 14:22:13 -0400 (EDT) To: Nicolas Kowalski Cc: pgsql-admin@postgresql.org Subject: Re: database ownership and dumps In-reply-to: References: Comments: In-reply-to Nicolas Kowalski message dated "Thu, 25 Jul 2002 19:25:24 +0200" Date: Thu, 25 Jul 2002 14:22:12 -0400 Message-ID: <19929.1027621332@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200207/363 X-Sequence-Number: 5047 Nicolas Kowalski writes: > CREATE DATABASE "sthomas" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII'; > UPDATE pg_database SET datdba = > WHERE datname = 'sthomas' ; This requires that you run the script as a superuser with catupd enabled. Pretty ugly. > Am I wrong ? Couldn't this be the "standard" pg_dump(|all) behaviour ? There is a better solution in development sources. regards, tom lane