pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lew <noone@lewscanon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: After server restart I get - An I/O error occured while sending to the backend.
Date: Sat, 22 May 2010 20:29:03 -0400
Message-ID: <ht9srs$7lh$1@news.albasani.net> (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>

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



view thread (10+ messages)  latest in thread

Message-ID: <ht9srs$7lh$1@news.albasani.net>
Permalink:  ../ht9srs$7lh$1@news.albasani.net/
Also on:    postgresql.org/message-id/ht9srs$7lh$1@news.albasani.net

 · 

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: noone@lewscanon.com
  Subject: Re: After server restart I get - An I/O error occured while sending to the backend.
  In-Reply-To: <ht9srs$7lh$1@news.albasani.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> <ht9srs$7lh$1@news.albasani.net>

* 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