X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 17F6252892 for ; Mon, 4 Jul 2005 16:02:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82075-03 for ; Mon, 4 Jul 2005 19:02:37 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 25CFE5288B for ; Mon, 4 Jul 2005 16:02:36 -0300 (ADT) Received: (qmail 11857 invoked from network); 4 Jul 2005 19:00:35 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 4 Jul 2005 19:00:35 -0000 In-Reply-To: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com> References: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.com> Cc: "Thomas Dudziak" , Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Create Database using JDBC Date: Mon, 4 Jul 2005 15:02:35 -0400 To: Nidhi Srivastava X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.017 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/21 X-Sequence-Number: 13169 select * from pg_stat_activity Dave On 4-Jul-05, at 9:08 AM, Nidhi Srivastava wrote: > Problem is if any client application is connected to another > database on > my server anywhere, I shall not able to create my database using > template1. How can I determine which other clients are connected to my > server? > > > -----Original Message----- > From: pgsql-jdbc-owner@postgresql.org > [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Thomas Dudziak > Sent: Monday, July 04, 2005 4:39 PM > To: pgsql-jdbc@postgresql.org > Subject: Re: [JDBC] Create Database using JDBC > > On 7/4/05, Nidhi Srivastava wrote: > >> >> But even that alternate template database would need to be created >> the >> first time after server installation by connceting to the template1 >> > DB?? > >> Right?? >> >> All I want is to automate database creation the first time after >> > server > >> installation eliminate user inputs >> > > But why then not requiring that no one is connected to the template1 > database ? That shouldn't be too much of a requirement. Myself, I > develop with postgres on a daily basis (using JDBC), and even I have > pgAmin only open when necessary eg. for checking that some data was > inserted in the db or testing a query. > > Tom > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > ---------------------------(end of > broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) > > Dave Cramer davec@postgresintl.com www.postgresintl.com ICQ #14675561 jabber davecramer@jabber.org ph (519 939 0336 )