Re: After server restart I get - An I/O error occured while sending to the backend.

Поиск
Список
Период
Сортировка
От Lew
Тема Re: After server restart I get - An I/O error occured while sending to the backend.
Дата
Msg-id ht9srs$7lh$1@news.albasani.net
обсуждение исходный текст
Ответ на Re: After server restart I get - An I/O error occured while sending to the backend.  (Daniele Depetrini <daniele.depetrini@criticalpath.net>)
Список pgsql-jdbc
Daniele Depetrini wrote:
> I've written a wrapper that use[s] the "setTransationIsolation" method as
> first operation against a just[-]obtained connection to implicitly check
> if it is still alive.

And what if the connection dies just after you've set transaction isolation
but before you do anything else with it?

As Craig Ringer pointed out, that technique does not relieve following code of
the responsibility to check for exceptions due to a lost connection, so what
does it buy you but the performance hit of an extra round trip to the database?

--
Lew

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

Предыдущее
От: harryh
Дата:
Сообщение: no timeout in AbstractJdbc23PoolingDataSource#getPooledConnection
Следующее
От: Lew
Дата:
Сообщение: Re: Using java.lang.Character for "char" data type