From pgsql-admin@carladata.de Tue Aug 22 13:33:23 2006 X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 73AD09FB364 for ; Tue, 22 Aug 2006 10:33:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 84805-04 for ; Tue, 22 Aug 2006 10:33:13 -0300 (ADT) X-Greylist: delayed 00:32:06.920186 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id BE75E9FB348 for ; Tue, 22 Aug 2006 10:33:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from smtp2.mk-netzdienste.de (mail2.mk-netzdienste.de [213.172.96.166]) by svr4.postgresql.org (Postfix) with ESMTP id E7C345AF027 for ; Tue, 22 Aug 2006 13:01:04 +0000 (GMT) Received: from localhost (scanner2.mk-netzdienste.de [213.172.96.175]) by smtpout.mk-netzdienste.de (Postfix) with ESMTP id C083950896 for ; Tue, 22 Aug 2006 15:00:59 +0200 (CEST) Received: from smtp2.mk-netzdienste.de ([213.172.96.166]) by localhost (scanner2.mk-netzdienste.de [213.172.96.175]) (amavisd-new, port 10024) with LMTP id 85249-02-39 for ; Tue, 22 Aug 2006 15:00:56 +0200 (CEST) Received: from geisslinger (unknown [213.172.114.97]) by smtp2.mk-netzdienste.de (Postfix) with SMTP id 969B350FC1 for ; Tue, 22 Aug 2006 15:00:56 +0200 (CEST) Message-ID: <000b01c6c5ea$fb26c900$340aa8c0@geisslinger> From: "MG" To: Subject: PostgreSQL 8.1.4 - INITDB - database postgres ? Date: Tue, 22 Aug 2006 15:00:45 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01C6C5FB.BE92E940" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Scanned: by MK Netzdienste X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.497 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200608/241 X-Sequence-Number: 22784 This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C6C5FB.BE92E940 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, we are trying to install PostgreSQL 8.1.4. We noticed that when you run initdb, there will be a databes postgres. We found this in the documentation: Creating a database cluster consists of creating the directories in = which the database data will live, generating the shared catalog tables = (tables that belong to the whole cluster rather than to any particular = database), and creating the template1 and postgres databases.=20 What`s the sense of this database postgres? Can we drop it? Regards Michaela ------=_NextPart_000_0008_01C6C5FB.BE92E940 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
we are trying to install PostgreSQL 8.1.4.
 
We noticed that when you run initdb, there will be a databes=20 postgres.
 
We found this in the documentation:
Creating a database cluster consists of creating the = directories in=20 which the database data will live, generating the shared catalog tables = (tables=20 that belong to the whole cluster rather than to any particular = database), and=20 creating the template1 and postgres databases.
 
What`s the sense of this database postgres?
Can we drop it?
 
Regards
Michaela
------=_NextPart_000_0008_01C6C5FB.BE92E940-- From mike@fuhr.org Tue Aug 22 13:48:36 2006 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 From tim.mcelroy@bostonstock.com Tue Aug 22 14:01:44 2006 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 8583D9FB26A for ; Tue, 22 Aug 2006 11:01:44 -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 09824-08 for ; Tue, 22 Aug 2006 14:01:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from morpheus.bostonstock.com (unknown [192.233.205.44]) by postgresql.org (Postfix) with ESMTP id 296769FA491 for ; Tue, 22 Aug 2006 11:01:22 -0300 (ADT) Received: by MORPHEUS with Internet Mail Service (5.5.2653.19) id ; Tue, 22 Aug 2006 09:50:47 -0400 Message-ID: <9765373733A7DF4681B12225D2FC44058E2D98@bosexprod001.bostonstock.local> From: "mcelroy, tim" To: 'Michael Fuhr' , MG Cc: pgsql-admin@postgresql.org Subject: Re: PostgreSQL 8.1.4 - INITDB - database postgres ? Date: Tue, 22 Aug 2006 10:01:20 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6C5F3.086FB610" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.313 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE, SPF_HELO_SOFTFAIL, SPF_SOFTFAIL X-Spam-Level: **** X-Archive-Number: 200608/243 X-Sequence-Number: 22786 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C6C5F3.086FB610 Content-Type: text/plain; charset="iso-8859-1" I agree with Michael, I would leave the postgres DB in place. I currently run 8.0.1 which does not create the postgres DB automatically and make a point to create it to use as my "maintenance" DB for such things as pgAdmin connections etc. I was unaware that newer releases auto-create this DB, good move! I only wish I could upgrade to at least 8.1 to take advantage of all the new features and fixes. Tim -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Michael Fuhr Sent: Tuesday, August 22, 2006 9:48 AM To: MG Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] PostgreSQL 8.1.4 - INITDB - database postgres ? 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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match ------_=_NextPart_001_01C6C5F3.086FB610 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [ADMIN] PostgreSQL 8.1.4 - INITDB - database postgres = ?

I agree with Michael, I would leave the postgres DB = in place.  I currently run 8.0.1 which does not create the = postgres DB automatically and make a point to create it to use as my = "maintenance" DB for such things as pgAdmin connections = etc.  I was unaware that newer releases auto-create this DB, good = move!  I only wish I could upgrade to at least 8.1 to take = advantage of all the new features and fixes.

Tim


 -----Original Message-----
From:   pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owne= r@postgresql.org]  On Behalf Of Michael Fuhr
Sent:   Tuesday, August 22, 2006 9:48 = AM
To:     MG
Cc:     = pgsql-admin@postgresql.org
Subject:        = Re: [ADMIN] PostgreSQL 8.1.4 - INITDB - database postgres ?

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

---------------------------(end of = broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will = ignore your desire to
       choose an index = scan if your joining column's datatypes do not
       match

------_=_NextPart_001_01C6C5F3.086FB610--