X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 1E7839FA45F for ; Tue, 22 Aug 2006 10:48:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 05587-09 for ; Tue, 22 Aug 2006 13:48:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id E55609F9856 for ; Tue, 22 Aug 2006 10:48:11 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.7/8.13.7) with ESMTP id k7MDm5QW029057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Aug 2006 07:48:07 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.6/8.13.6) with ESMTP id k7MDm4bA056757; Tue, 22 Aug 2006 07:48:04 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.6/8.13.6/Submit) id k7MDm4ul056756; Tue, 22 Aug 2006 07:48:04 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 22 Aug 2006 07:48:04 -0600 From: Michael Fuhr To: MG Cc: pgsql-admin@postgresql.org Subject: Re: PostgreSQL 8.1.4 - INITDB - database postgres ? Message-ID: <20060822134804.GA56650@winnie.fuhr.org> References: <000b01c6c5ea$fb26c900$340aa8c0@geisslinger> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01c6c5ea$fb26c900$340aa8c0@geisslinger> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.817 tagged_above=0 required=5 tests=SPF_HELO_SOFTFAIL, SPF_SOFTFAIL, UNPARSEABLE_RELAY X-Spam-Level: *** X-Archive-Number: 200608/242 X-Sequence-Number: 22785 On Tue, Aug 22, 2006 at 03:00:45PM +0200, MG wrote: > What`s the sense of this database postgres? Here's an excerpt from the 8.1 Release Notes: * Make initdb create a new standard database called postgres, and convert utilities to use postgres rather than template1 for standard lookups (Dave) In prior releases, template1 was used both as a default connection for utilities like createuser, and as a template for new databases. This caused CREATE DATABASE to sometimes fail, because a new database cannot be created if anyone else is in the template database. With this change, the default connection database is now postgres, meaning it is much less likely someone will be using template1 during CREATE DATABASE. > Can we drop it? Some utilities expect to find the "postgres" database and they'll fail if they can't connect to it. I'd recommend leaving it in place. -- Michael Fuhr