pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Jeff Madison <jeff@madisonfam.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Switching database inside current connection
Date: Thu, 28 Sep 2006 09:33:51 -0500
Message-ID: <1159454031.26848.117.camel@state.g2switchworks.com> (raw)
In-Reply-To: <451B4CCE.7000105@madisonfam.net>
References: <451B4CCE.7000105@madisonfam.net>

On Wed, 2006-09-27 at 23:17, Jeff Madison wrote:
> I have to search multiple, identical databases on a server and am 
> currently having to create a DataSource for each database on the server 
> and then get a connection.  How would I create a DataSource for the 
> server and then modify the connnection to "switch" databases.  I would 
> like to just re-use the same connection for obvious reasons.
> 
> I'm running server version 7.3 and the coinciding JDBC driver version.

If you can move away from individual databases to multiple schemas in
one database, then your problem would be solved.  Schema support was
initially added in 7.3, but the tools needed for examining schemas and
such were not quite done all the way back then.  Upgrading to 7.4 at
least makes dealing with schemas a little easier, and if you're
upgrading to 7.4, might as well go all the way and get 8.1.4.  7.3 is on
the very tail end of what's considered "supported".



view thread (3+ messages)

Message-ID: <1159454031.26848.117.camel@state.g2switchworks.com>
Permalink:  ../1159454031.26848.117.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1159454031.26848.117.camel@state.g2switchworks.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: smarlowe@g2switchworks.com, jeff@madisonfam.net
  Subject: Re: Switching database inside current connection
  In-Reply-To: <1159454031.26848.117.camel@state.g2switchworks.com>
  References: <451B4CCE.7000105@madisonfam.net> <1159454031.26848.117.camel@state.g2switchworks.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