Re: Switching databases over JDBC/ODBC - Mailing list pgsql-general

From Bayless Kirtley
Subject Re: Switching databases over JDBC/ODBC
Date
Msg-id 8268CC4FB4AD4D89B0A1F4EFEF025246@dell2400
Whole thread Raw
In response to Switching databases over JDBC/ODBC  (Scott Bailey <artacus@comcast.net>)
List pgsql-general
You can establish a new connection without dropping the old one. Thus you
can be connected to 2 databases at the same time. Just use the appropriate
connection for the database you want.

Bayless

----- Original Message -----
From: "Scott Bailey" <artacus@comcast.net>
To: "pgsql-general" <pgsql-general@postgresql.org>
Sent: Friday, May 29, 2009 6:34 PM
Subject: [GENERAL] Switching databases over JDBC/ODBC


> Is there an equivalent to psql's \connect database or MySQL/MS SQL's use
> database command that will work with JDBC? It doesn't seem like I should
> need to drop the connection and establish a new one just to switch
> databases.
>
> Scott
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Scott Bailey
Date:
Subject: Switching databases over JDBC/ODBC
Next
From: Martin Gainty
Date:
Subject: Re: Switching databases over JDBC/ODBC