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 94E7B52833 for ; Mon, 4 Jul 2005 13:25:01 -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 51429-07 for ; Mon, 4 Jul 2005 16:24:51 +0000 (GMT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.204]) by svr1.postgresql.org (Postfix) with ESMTP id 509EC5284D for ; Mon, 4 Jul 2005 13:24:50 -0300 (ADT) Received: by nproxy.gmail.com with SMTP id g2so170472nfe for ; Mon, 04 Jul 2005 09:24:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CAc0S3XiRZvjb8T9adiRJsl96dVel5kFr3ifrxBirHxgmnvwXiFASMuYjjlBeNYQLbiYO2DuqG1j36zyZWr8B6HIhXZj5ka1QLCadqM2nX/MriSt7Js7+2uqhEGmOR2jqlFNPublwp4Cujbr1Nx3UU6RlHQ4uGy9J9EZ7PbKnaY= Received: by 10.48.4.10 with SMTP id 10mr118586nfd; Mon, 04 Jul 2005 09:24:49 -0700 (PDT) Received: by 10.48.249.2 with HTTP; Mon, 4 Jul 2005 09:24:49 -0700 (PDT) Message-ID: <224f323405070409241a7edd67@mail.gmail.com> Date: Mon, 4 Jul 2005 18:24:49 +0200 From: Thomas Dudziak Reply-To: Thomas Dudziak To: pgsql-jdbc@postgresql.org Subject: Re: Create Database using JDBC In-Reply-To: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/18 X-Sequence-Number: 13166 On 7/4/05, 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? Have you tried that this doesn't work ? If none of the clients is connected to template1 but only to their own databases, then AFAIK it should work (pgAdmin might be different in this matter, perhaps it is always connected to the template databases ?). You could write a small JDBC app to verify that it does/doesn't work, eg. * open a connection to template1 * create database test * close connection to template1 * open connection to test and keep it open * open connection to template1 * create database test2 * close connection to template1 * close connection to test if this doesn't work, then you probably should file a bug and attach this sample app. Tom