Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8D40E632AE8 for ; Sun, 23 May 2010 02:15:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72895-01 for ; Sun, 23 May 2010 05:15:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id 4EBA7632778 for ; Sun, 23 May 2010 02:15:45 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id DCF4FA2CC; Sun, 23 May 2010 13:15:42 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id D806EAF42A; Sun, 23 May 2010 13:14:52 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2R51JBiWn4tT; Sun, 23 May 2010 13:14:47 +0800 (WST) Received: from [10.1.1.8] (124-148-217-247.dyn.iinet.net.au [124.148.217.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 9203CAE382; Sun, 23 May 2010 13:14:47 +0800 (WST) Message-ID: <4BF8B9F9.7020203@postnewspapers.com.au> Date: Sun, 23 May 2010 13:15:37 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Daniele Depetrini CC: pgsql-jdbc@postgresql.org Subject: Re: After server restart I get - An I/O error occured while sending to the backend. References: <4BF27D11.8020001@postnewspapers.com.au> <4BF7AA8C.8080008@postnewspapers.com.au> <4BF85F34.90201@criticalpath.net> In-Reply-To: <4BF85F34.90201@criticalpath.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/68 X-Sequence-Number: 20552 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