Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B493A9FA43B for ; Fri, 9 Feb 2007 18:33:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 10417-03 for ; Fri, 9 Feb 2007 18:33:02 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id 9E0BD9FA110 for ; Fri, 9 Feb 2007 18:33:02 -0400 (AST) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Fri, 9 Feb 2007 22:32:56 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 09 Feb 2007 16:32:56 -0600 Subject: Re: Connection state after network failure? From: Scott Marlowe To: Kevin Birkett Cc: pgsql-jdbc@postgresql.org In-Reply-To: <346FF8985107AA41AC92CEC80E21E6B5BBC7@phxx05.exchange.phxx> References: <346FF8985107AA41AC92CEC80E21E6B5BBC7@phxx05.exchange.phxx> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1171060376.894.22.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 09 Feb 2007 16:32:56 -0600 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/44 X-Sequence-Number: 16600 On Fri, 2007-02-09 at 13:10, Kevin Birkett wrote: > Hello, > > I'm having a problem with our software which uses Postgres 7.2.3 and > the JDBC driver associated with it. In our code we only create one > connection to the database, and then use that connection as needed for > our DB interaction. The problem comes in when I simulate a network > failure (yank the cat5) after the app has started up and connected to > the remote database. I've tried an idea I found by searching the > archives of this mailing list, but I haven't been able to get it to > work. I can only assume you're using the same jdbc driver version as you are postgresql. 7.2.3 is quite old. We had some minor issues with the early 7.4 jdbc drivers, and there have been man releases since then. pgsql 7.2 has known unfixable bugs, and given enough time, it WILL eat your data. Please investigate updating to the latest or nearly so version of postgresql and see if that helps. I'd recommend at least 8.1.x, but the latest 8.2.3 seems pretty stable and I'm testing it already for internal use.