X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 07FE0475DDA for ; Wed, 19 Feb 2003 14:29:51 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 16283-03 for ; Wed, 19 Feb 2003 14:29:40 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 5C95E4758C9 for ; Wed, 19 Feb 2003 14:29:40 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 92181D622; Wed, 19 Feb 2003 11:29:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 87C3C5C03; Wed, 19 Feb 2003 11:29:40 -0800 (PST) Date: Wed, 19 Feb 2003 11:29:40 -0800 (PST) From: Stephan Szabo To: Donald Fraser Cc: "[ADMIN]" Subject: Re: pg_dumpall In-Reply-To: <005401c2d84b$660fbf10$1664a8c0@DEMOLITION> Message-ID: <20030219112211.K36237-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/319 X-Sequence-Number: 7517 On Wed, 19 Feb 2003, Donald Fraser wrote: > PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC 2.96 > > I issue the following command: > CREATE DATABASE "CISX" WITH OWNER = postgres TEMPLATE = template1 ENCODING = 'SQL_ASCII'; > > When I do a backup from the database using pg_dumpall (with no command line options) it creates the following: > CREATE DATABASE "CISX" WITH OWNER = postgres TEMPLATE = template0 ENCODING = 'SQL_ASCII'; > > I don't know whether this is a bug or not as I can't find any hard documentation to say otherwise? I'd guess not, because the objects you copied from template1 when making the database are part of the dumpall output. If you made it from template1 after the backup you'd get anything that was in the new template1 plus all of the old objects.