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

From Craig Ringer
Subject Re: After server restart I get - An I/O error occured while sending to the backend.
Date
Msg-id 4BF8B9F9.7020203@postnewspapers.com.au
Whole thread Raw
In response to Re: After server restart I get - An I/O error occured while sending to the backend.  (Daniele Depetrini <daniele.depetrini@criticalpath.net>)
List pgsql-jdbc
On 23/05/10 06:48, Daniele Depetrini wrote:
> I've written a wrapper that use the "setTransationIsolation" method as
> first operation against a just obtained connection to implicitly check
> if it is still alive.

Yep, or you can SHOW a variable if you like. That won't mess with
ongoing transaction state, won't create a snapshot (like SELECT 1;
might), etc.

Again, though, remember that you still need to be prepared to handle
connections dying while you're in the middle of doing work.

--
Craig Ringer

pgsql-jdbc by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Error in connector or driver with big bytea
Next
From: Kris Jurka
Date:
Subject: Re: Using java.lang.Character for "char" data type