pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Dudziak <tomdzk@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Create Database using JDBC
Date: Mon, 4 Jul 2005 18:24:49 +0200
Message-ID: <224f323405070409241a7edd67@mail.gmail.com> (raw)
In-Reply-To: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com>
References: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com>

On 7/4/05, Nidhi Srivastava <nsrivastava@quark.com> 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



view thread (20+ messages)  latest in thread

Message-ID: <224f323405070409241a7edd67@mail.gmail.com>
Permalink:  ../224f323405070409241a7edd67@mail.gmail.com/
Also on:    postgresql.org/message-id/224f323405070409241a7edd67@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tomdzk@gmail.com
  Subject: Re: Create Database using JDBC
  In-Reply-To: <224f323405070409241a7edd67@mail.gmail.com>
  References: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com> <224f323405070409241a7edd67@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox