Re: Switching database inside current connection

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Switching database inside current connection
Дата
Msg-id Pine.BSO.4.63.0609272325480.2117@leary2.csoft.net
обсуждение исходный текст
Ответ на Switching database inside current connection  (Jeff Madison <jeff@madisonfam.net>)
Список pgsql-jdbc

On Wed, 27 Sep 2006, Jeff Madison wrote:

> I have to search multiple, identical databases on a server and am currently
> having to create a DataSource for each database on the server and then get a
> connection.  How would I create a DataSource for the server and then modify
> the connnection to "switch" databases.  I would like to just re-use the same
> connection for obvious reasons.

This is not possible with postgresql.  You can only use the database you
initially connected to.  To access parts of other database you can use
contrib/dblink, but for your purposes I think multiple connections are
required.

Kris Jurka

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

Предыдущее
От: Jeff Madison
Дата:
Сообщение: Switching database inside current connection
Следующее
От: Michael Paesold
Дата:
Сообщение: Re: [pgsql-jdbc] dollar-quoted CREATE FUNCTION statement fails