Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F05159FB27F for ; Thu, 28 Sep 2006 01:24:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 95697-01 for ; Thu, 28 Sep 2006 01:24:10 -0300 (ADT) X-Greylist: delayed 00:06:37.756576 by SQLgrey- Received: from smtpauth02.prod.mesa1.secureserver.net (smtpauth02.prod.mesa1.secureserver.net [64.202.165.182]) by postgresql.org (Postfix) with SMTP id 92F229FB278 for ; Thu, 28 Sep 2006 01:24:09 -0300 (ADT) Received: (qmail 23227 invoked from network); 28 Sep 2006 04:17:29 -0000 Received: from unknown (71.219.43.152) by smtpauth02-04.prod.mesa1.secureserver.net (64.202.165.182) with ESMTP; 28 Sep 2006 04:17:29 -0000 Message-ID: <451B4CCE.7000105@madisonfam.net> Date: Wed, 27 Sep 2006 22:17:18 -0600 From: Jeff Madison User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Switching database inside current connection Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/134 X-Sequence-Number: 15852 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. Jeff