Re: Switching databases over JDBC/ODBC

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Martin Gainty <mgainty(at)hotmail(dot)com>
Cc: artacus(at)comcast(dot)net, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Switching databases over JDBC/ODBC
Date: 2009-05-30 01:24:10
Message-ID: 4A208ABA.90403@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martin Gainty wrote:
> 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?

\connect is a psql command, nothing to do with JDBC.

In Java, you would Close() a JDBC connection, then getConnection() to
create a new one.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Gainty 2009-05-30 01:31:04 Re: Switching databases over JDBC/ODBC
Previous Message Martin Gainty 2009-05-30 00:14:40 Re: Switching databases over JDBC/ODBC