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 D4F6A9DCB45 for ; Tue, 7 Feb 2006 21:19:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98442-01 for ; Tue, 7 Feb 2006 21:19:13 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 38A999DC9D6 for ; Tue, 7 Feb 2006 21:19:08 -0400 (AST) Received: from cuaima.ica.luz.ve (unknown [150.185.222.161]) by svr4.postgresql.org (Postfix) with ESMTP id 7CB885AF089 for ; Wed, 8 Feb 2006 01:19:12 +0000 (GMT) Received: from salamandra.ica.luz.ve (unknown [10.2.208.204]) by cuaima.ica.luz.ve (Postfix) with ESMTP id C6F4E93F0A for ; Tue, 7 Feb 2006 21:16:48 -0400 (VET) From: Nelson Arape To: pgsql-jdbc@postgresql.org Subject: Re: Statement has been closed (only in Windows) Date: Tue, 7 Feb 2006 21:16:47 -0400 User-Agent: KMail/1.8.2 References: <43E64FD8.9030704@m16e.com> <1139281571.2693.66.camel@localhost.localdomain> <43E928A8.3080408@m16e.com> In-Reply-To: <43E928A8.3080408@m16e.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200602072116.47773.narape@ica.luz.ve> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200602/51 X-Sequence-Number: 14648 El Martes, 7 de Febrero de 2006 19:09, Carlos Correia escribi=C3=B3: > pedro farinha escreveu: > | Hi Carlos, if you're problem is solved what is the question? > | if you worry about creating a lot of statements, don't. But make sure > | you close them after use. Also the resultSet if any. Not a big brain on > | this end, but why would you want to keep the statement open? > > Well, why not? It's a fat client, It establishes a connection at > application start up and closes it once the app finishes... what's the > problem about keeping the same statement (it's been working like that in > a production environment for years in Linux)? > Maybe your problem is more related to the transition from postgres (and its= =20 JDBC driver) from 7.x to 8.x. Why not you try your migration in steps 1. Migrate to Postgres 8.x (and its JDBC driver) on Linux 2. Migrate from linux to windows. I think that the step to may be easer than step 1 due to changes related to= =20 use network protocol version 3 and serverside prepare statement. Nelson Arap=C3=A9