Skip site navigation (1) Skip section navigation (2)

Switching database inside current connection

From: Jeff Madison <jeff(at)madisonfam(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Switching database inside current connection
Date: 2006-09-28 04:17:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
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.



pgsql-jdbc by date

Next:From: Kris JurkaDate: 2006-09-28 04:27:57
Subject: Re: Switching database inside current connection
Previous:From: Kris JurkaDate: 2006-09-27 18:37:43
Subject: Re: Storing and retreiving infinity timestamp values from

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group