pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Daniele Depetrini <daniele.depetrini@criticalpath.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: After server restart I get - An I/O error occured while sending to the backend.
Date: Sun, 23 May 2010 13:15:37 +0800
Message-ID: <4BF8B9F9.7020203@postnewspapers.com.au> (raw)
In-Reply-To: <4BF85F34.90201@criticalpath.net>
References: <AANLkTilHOdiZ0kiIkPg51KGnz9BTgKK4PWQ-3QwzKkrq@mail.gmail.com>
	<4BF27D11.8020001@postnewspapers.com.au>
	<AANLkTimc7p5W-y7QQx7dXExPXGpIp8jr9AfLJZTdNUya@mail.gmail.com>
	<4BF7AA8C.8080008@postnewspapers.com.au>
	<AANLkTimaWUGnxdv86lANn3wKn9ZXB1jlZn99A_EdEA9G@mail.gmail.com>
	<4BF85F34.90201@criticalpath.net>

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



view thread (10+ messages)

Message-ID: <4BF8B9F9.7020203@postnewspapers.com.au>
Permalink:  ../4BF8B9F9.7020203@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4BF8B9F9.7020203@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: craig@postnewspapers.com.au, daniele.depetrini@criticalpath.net
  Subject: Re: After server restart I get - An I/O error occured while sending to the backend.
  In-Reply-To: <4BF8B9F9.7020203@postnewspapers.com.au>
  References: <AANLkTilHOdiZ0kiIkPg51KGnz9BTgKK4PWQ-3QwzKkrq@mail.gmail.com> <4BF27D11.8020001@postnewspapers.com.au> <AANLkTimc7p5W-y7QQx7dXExPXGpIp8jr9AfLJZTdNUya@mail.gmail.com> <4BF7AA8C.8080008@postnewspapers.com.au> <AANLkTimaWUGnxdv86lANn3wKn9ZXB1jlZn99A_EdEA9G@mail.gmail.com> <4BF85F34.90201@criticalpath.net> <4BF8B9F9.7020203@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox