Re: PostgreSQL 8.1.4 - INITDB - database postgres ?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: PostgreSQL 8.1.4 - INITDB - database postgres ?
Дата
Msg-id 20060822134804.GA56650@winnie.fuhr.org
обсуждение исходный текст
Ответ на PostgreSQL 8.1.4 - INITDB - database postgres ?  ("MG" <pgsql-admin@carladata.de>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "MG"
Дата:
Сообщение: PostgreSQL 8.1.4 - INITDB - database postgres ?
Следующее
От: "mcelroy, tim"
Дата:
Сообщение: Re: PostgreSQL 8.1.4 - INITDB - database postgres ?