X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6AB4652AC5 for ; Thu, 14 Jul 2005 13:36:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34632-05 for ; Thu, 14 Jul 2005 16:36:11 +0000 (GMT) Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by svr1.postgresql.org (Postfix) with ESMTP id C11E552D8D for ; Thu, 14 Jul 2005 13:36:08 -0300 (ADT) Received: from [192.168.1.110] (unknown [192.168.1.110]) by mail.ecircle.de (READY) with ESMTP id B56CF55D22C for ; Thu, 14 Jul 2005 18:36:08 +0200 (CEST) Subject: Re: Using a 7_4 JDBC driver to connect to 8.0 From: Csaba Nagy To: Postgres JDBC In-Reply-To: <1121358213.3085.212.camel@coppola.muc.ecircle.de> References: <1121358213.3085.212.camel@coppola.muc.ecircle.de> Content-Type: text/plain Message-Id: <1121358968.3085.216.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 14 Jul 2005 18:36:08 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/83 X-Sequence-Number: 13231 Nevermind, it works fine. I was just trying out a new SQL tool and executed some DDLs, and it had autocommit off... oh dear... and my test system was waiting for me to commit. Sorry for the noise... Cheers, Csaba. On Thu, 2005-07-14 at 18:23, Csaba Nagy wrote: > Is this supported ? I have a deployed code which connects now to 7.4, > and I would like to upgrade the server to 8.0. Changing the JDBC driver > too would mean to change a lot of our code, which we can only do in a > new release, but the DB migration should happen before we can release > the new version. > I briefly tested the 7.4 driver with 8.0 server, and it seems to mostly > work except it hangs consistently in a particular operation (I was > testing our web pages). A thread dump taken after the hang shows always > the same: > > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:235) > - locked <0xec63f5c0> (a java.io.BufferedInputStream) > at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:166) > at > org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:127) > - locked <0xec63e548> (a org.postgresql.core.PGStream) > at > org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100) > at > org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43) > at > org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:517) > at > org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50) > at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.postgresql.jdbc2.optional.PooledConnectionImpl$StatementHandler.invoke(PooledConnectionImpl.java:452) > at $Proxy2.execute(Unknown Source) > [...our code follows...] > > > Do I have any chance to make this combination (7_4 driver/8.0 server) > work fine ? If not my only chance is to stay with the 7_4 server :-/ > > Thanks, > Csaba. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq