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

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Daniele Depetrini <daniele(dot)depetrini(at)criticalpath(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: After server restart I get - An I/O error occured while sending to the backend.
Date: 2010-05-23 05:15:37
Message-ID: 4BF8B9F9.7020203@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lew 2010-05-23 14:42:57 Re: Error in connector or driver with big bytea
Previous Message Craig Ringer 2010-05-23 05:13:22 Re: Error in connector or driver with big bytea