pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Nidhi Srivastava <nsrivastava@quark.com>
Cc: Thomas Dudziak <tomdzk@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Create Database using JDBC
Date: Mon, 4 Jul 2005 15:02:35 -0400
Message-ID: <35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.com> (raw)
In-Reply-To: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com>
References: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com>

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 <nsrivastava@quark.com> 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 )




view thread (20+ messages)  latest in thread

Message-ID: <35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.com>
Permalink:  ../35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.com/
Also on:    postgresql.org/message-id/35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.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: pg@fastcrypt.com, nsrivastava@quark.com, tomdzk@gmail.com
  Subject: Re: Create Database using JDBC
  In-Reply-To: <35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.com>
  References: <2BC68159E3EC814BA1E81C108DF99A4203A37FE6@EXCH-IND-VS1.india.quark.com> <35F527E3-65B9-4DD7-B99F-2A95D8DF994D@fastcrypt.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