X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 84BBE11F61C6 for ; Wed, 12 Apr 2006 02:02:49 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0.12 X-Spam-Level: X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id Hj5y9Ljporj3 for ; Wed, 12 Apr 2006 02:02:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id E52B911F60AE for ; Wed, 12 Apr 2006 02:02:45 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FTXV4-0004hn-F8; Wed, 12 Apr 2006 17:02:42 +1200 Message-ID: <443C89F1.2050801@opencloud.com> Date: Wed, 12 Apr 2006 17:02:41 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Riehl CC: pgsql-jdbc@postgresql.org Subject: Re: No automatic reconnect after network error References: <000f01c65de4$2cd8a500$15b2a8c0@pcmar02> In-Reply-To: <000f01c65de4$2cd8a500$15b2a8c0@pcmar02> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/91 X-Sequence-Number: 15025 Markus Riehl wrote: > I think this means that the PostgreSQL JDBC driver doesn't support automatic > reconnection. And I don't see this feature on the Roadmap. Is it unusual to > use PostgreSQL in a multi server environment? It's unusual to have JDBC drivers automatically reconnect. I could see an argument for it if you could guarantee that the reconnection was invisible to the user .. but that's not the case here. The JDBC spec's Connection lifecycle seems to be aimed at a 1:1 mapping to real physical connections, anyway. Once it's closed for whatever reason, a Connection stays closed. If you want to do more work, you need to get a new Connection. -O