X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9E4B8567C5 for ; Mon, 14 Mar 2005 15:59:28 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66340-10 for ; Mon, 14 Mar 2005 15:59:19 +0000 (GMT) Received: from koolancexeon.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by svr1.postgresql.org (Postfix) with ESMTP id 52093567A6 for ; Mon, 14 Mar 2005 15:59:18 +0000 (GMT) Received: mail.g2switchworks.com 10.10.1.8 from 10.10.1.37 10.10.1.37 via HTTP with MS-WebStorage 6.5.6944 Received: from state.g2switchworks.com by mail.g2switchworks.com; 14 Mar 2005 09:59:14 -0600 Subject: Re: How can I recreate the template0 database? From: Scott Marlowe To: Eduardo Mambrilla =?ISO-8859-1?Q?Mart=EDnez?= Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <1110815954.28555.37.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 14 Mar 2005 09:59:14 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/210 X-Sequence-Number: 16708 On Wed, 2005-03-09 at 01:32, Eduardo Mambrilla Mart=C3=ADnez wrote: > I made a mistake, I droped the template0 database... > How can I recreate it? Do you still have template1? If so, connect in single user mode, enter: postgres template1 create database template0 with template template1 update pg_database set datallowconn =3D false where datname=3D'template0'; Use CTRL-D to exit.