X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7DCCF9DD6A2 for ; Thu, 1 Dec 2005 13:34:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92265-08-2 for ; Thu, 1 Dec 2005 13:34:00 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by postgresql.org (Postfix) with ESMTP id 4B9F69DD687 for ; Thu, 1 Dec 2005 13:34:00 -0400 (AST) Received: from mail3.ecircle.de (unknown [195.140.186.206]) by svr2.postgresql.org (Postfix) with ESMTP id 044D4F0B37 for ; Thu, 1 Dec 2005 17:33:59 +0000 (GMT) Received: from deimos.muc.ecircle.de (deimos.muc.ecircle.de [192.168.1.4]) by mail3.ecircle.de (READY) with ESMTP id 0C30D11C48A; Thu, 1 Dec 2005 18:33:57 +0100 (CET) Received: from [192.168.1.110] ([192.168.1.110]) by deimos.muc.ecircle.de with Microsoft SMTPSVC(5.0.2195.6713); Thu, 1 Dec 2005 18:33:56 +0100 Subject: Re: What is the exact Deal with Maintenance DB ? From: Csaba Nagy To: =?iso-8859-9?Q?Ayd=FDn?= Toprak Cc: Postgres JDBC In-Reply-To: <438F30C7.7000600@intengo.com> References: <438F30C7.7000600@intengo.com> Content-Type: text/plain; charset=UTF-8 Message-Id: <1133458436.4779.92.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 01 Dec 2005 18:33:56 +0100 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 01 Dec 2005 17:33:56.0880 (UTC) FILETIME=[68392100:01C5F69D] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/2 X-Sequence-Number: 14333 This (JDBC) is the wrong list for this question (GENERAL would have been better), but basically: you can't create a new data base based on template1 if somebody else is also connected to it. You can only use template1 if you're the ONLY one connection to it. This will make you impossible to create new data bases if somebody connects to template1 and forgets to disconnect for ages... So the postgres data base is used to connect to, and template1 to be used as a template. You shouldn't connect anymore to template1, so it can be always used as a template without problems. HTH, Csaba. On Thu, 2005-12-01 at 18:20, Ayd=C4=B1n Toprak wrote: > Hiii, >=20 > I trying to understand what is the exact usage of Matenance DB=20 > "postgres" ... >=20 > ,I think It is a template like "template1" ... and If we want to=20 > generate a database we create new one from "postgres" template... >=20 > However I cant do it, but I can create a new databse from template1 ...=20 > I really dont understand the functionality of "postgres" ... >=20 > If I create a connection from template 1, and create another connection=20 > from the conneciton 1, It clones the DB on the first conneciton to the=20 > second ... >=20 > If I drop the DB from one connection, then the second conneciton looses=20 > the DB as well ... >=20 >=20 > in what circumtances, we may need two conneciton on the same Posqgresql=20 > server ?... >=20 > sorry I am really confused about that... >=20 >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster