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

From John R Pierce
Subject Re: Switching databases over JDBC/ODBC
Date
Msg-id 4A2078A7.6030204@hogranch.com
Whole thread Raw
In response to Switching databases over JDBC/ODBC  (Scott Bailey <artacus@comcast.net>)
Responses Re: Switching databases over JDBC/ODBC
Re: Switching databases over JDBC/ODBC
List pgsql-general
Scott Bailey wrote:
> 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.


the \connect command disconnects from the current database, and connects
to a new one, this causes a new postgres server process to be spawned to
replace the one servicing the old connection.



pgsql-general by date:

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