Re: No automatic reconnect after network error

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: No automatic reconnect after network error
Дата
Msg-id 443C89F1.2050801@opencloud.com
обсуждение исходный текст
Ответ на Re: No automatic reconnect after network error  ("Markus Riehl" <mriehl@skat.com>)
Список pgsql-jdbc
Markus Riehl wrote:

> I think this means that the PostgreSQL JDBC driver doesn't support automatic
> reconnection. And I don't see this feature on the Roadmap. Is it unusual to
> use PostgreSQL in a multi server environment?

It's unusual to have JDBC drivers automatically reconnect. I could see
an argument for it if you could guarantee that the reconnection was
invisible to the user .. but that's not the case here.

The JDBC spec's Connection lifecycle seems to be aimed at a 1:1 mapping
to real physical connections, anyway. Once it's closed for whatever
reason, a Connection stays closed. If you want to do more work, you need
to get a new Connection.

-O

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

Предыдущее
От: "Guy Rouillier"
Дата:
Сообщение: Re: No automatic reconnect after network error
Следующее
От: kevin@mtel.co.uk
Дата:
Сообщение: postgres jdbc transaction problem surfaces at times