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 BC19B529A6 for ; Fri, 1 Jul 2005 09:30:37 -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 88696-04 for ; Fri, 1 Jul 2005 12:30:35 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id E2D1D52913 for ; Fri, 1 Jul 2005 09:30:30 -0300 (ADT) Received: (qmail 15436 invoked from network); 1 Jul 2005 12:28:26 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (64.7.143.116) by net2.micro-automation.com with SMTP; 1 Jul 2005 12:28:26 -0000 In-Reply-To: <2BC68159E3EC814BA1E81C108DF99A4203A37FD9@EXCH-IND-VS1.india.quark.com> References: <2BC68159E3EC814BA1E81C108DF99A4203A37FD9@EXCH-IND-VS1.india.quark.com> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: multipart/alternative; boundary=Apple-Mail-10-179901231 Message-Id: <01D427A8-9B3A-457E-8371-C1BA62416274@fastcrypt.com> Cc: From: Dave Cramer Subject: Re: Create Database using JDBC Date: Fri, 1 Jul 2005 08:30:21 -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.018 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200507/5 X-Sequence-Number: 13153 --Apple-Mail-10-179901231 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Is it possible you have an existing open transaction on template1 ? Have a look at the postgresql logs. Dave On 1-Jul-05, at 4:30 AM, Nidhi Srivastava wrote: > Hi all > > > > I wish to create a database if one doesn=92t exist using JDBC. I =20 > tried connecting to template1 database and then issuing the =93CREATE =20= > DATABASE test=94 command but I get the following error : > > > > ERROR: CREATE DATABASE: source database "template1" > is being accessed by other users > > > > > How do I resolve this? I=92m using PostGreSQL8.0 > > > > Thanks & Regards > > Nidhi > > Dave Cramer davec@postgresintl.com www.postgresintl.com ICQ #14675561 jabber davecramer@jabber.org ph (519 939 0336 ) --Apple-Mail-10-179901231 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252 Is it possible you have an = existing open transaction on template1 ?

Have a look at the = postgresql logs.

Dave
On = 1-Jul-05, at 4:30 AM, Nidhi Srivastava wrote:

Hi all=A0

I wish to create a database if one doesn=92t = exist using JDBC. I tried connecting to template1 database and then = issuing the =93CREATE DATABASE test=94 command but I get the following = error :=A0

ERROR:=A0 CREATE =
DATABASE: source database "template1"

=A0

=A0

How do I resolve this? I=92m using = PostGreSQL8.0

Thanks & Regards

Nidhi




Dave Cramer
www.postgresintl.com
ICQ #14675561
= ph (519 939 0336 )

= --Apple-Mail-10-179901231--