Re: Switching databases over JDBC/ODBC

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Switching databases over JDBC/ODBC
Дата
Msg-id 4A2078A7.6030204@hogranch.com
обсуждение исходный текст
Ответ на Switching databases over JDBC/ODBC  (Scott Bailey <artacus@comcast.net>)
Ответы Re: Switching databases over JDBC/ODBC  (Martin Gainty <mgainty@hotmail.com>)
Re: Switching databases over JDBC/ODBC  (Scott Bailey <artacus@comcast.net>)
Список 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 по дате отправления:

Предыдущее
От: Martin Gainty
Дата:
Сообщение: Re: Switching databases over JDBC/ODBC
Следующее
От: Martin Gainty
Дата:
Сообщение: Re: Switching databases over JDBC/ODBC