Re: Switching databases over JDBC/ODBC

Поиск
Список
Период
Сортировка
От Martin Gainty
Тема Re: Switching databases over JDBC/ODBC
Дата
Msg-id BLU142-W34AB1A53D04470E3184D72AE4E0@phx.gbl
обсуждение исходный текст
Ответ на Re: Switching databases over JDBC/ODBC  (John R Pierce <pierce@hogranch.com>)
Ответы Re: Switching databases over JDBC/ODBC  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
does '\connect' work with Type-IV JDBC Database?
can you effectively 'drop' the first DB connection
and somehow read a different set of DB parameters to connect to a new DB?

thanks,
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.





> Date: Fri, 29 May 2009 17:07:03 -0700
> From: pierce@hogranch.com
> To: artacus@comcast.net
> CC: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] Switching databases over JDBC/ODBC
>
> 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.
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


Hotmail® has a new way to see what's up with your friends. Check it out.

В списке pgsql-general по дате отправления:

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