pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: MG <pgsql-admin@carladata.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: PostgreSQL 8.1.4 - INITDB - database postgres ?
Date: Tue, 22 Aug 2006 07:48:04 -0600
Message-ID: <20060822134804.GA56650@winnie.fuhr.org> (raw)
In-Reply-To: <000b01c6c5ea$fb26c900$340aa8c0@geisslinger>
References: <000b01c6c5ea$fb26c900$340aa8c0@geisslinger>

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



view thread (3+ messages)  latest in thread

Message-ID: <20060822134804.GA56650@winnie.fuhr.org>
Permalink:  ../20060822134804.GA56650@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20060822134804.GA56650@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, pgsql-admin@carladata.de
  Subject: Re: PostgreSQL 8.1.4 - INITDB - database postgres ?
  In-Reply-To: <20060822134804.GA56650@winnie.fuhr.org>
  References: <000b01c6c5ea$fb26c900$340aa8c0@geisslinger> <20060822134804.GA56650@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox