Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTJh4-0006od-Df for pgsql-jdbc@arkaria.postgresql.org; Tue, 17 Jan 2017 02:40:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTJh3-00078b-SQ for pgsql-jdbc@arkaria.postgresql.org; Tue, 17 Jan 2017 02:40:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTJgZ-0005zj-1y for pgsql-jdbc@postgresql.org; Tue, 17 Jan 2017 02:39:47 +0000 Received: from nh502-vm9.bullet.mail.kks.yahoo.co.jp ([183.79.56.154]) by makus.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTJgP-0004ze-8l for pgsql-jdbc@postgresql.org; Tue, 17 Jan 2017 02:39:45 +0000 Received: from [183.79.100.139] by nh502.bullet.mail.kks.yahoo.co.jp with NNFMP; 17 Jan 2017 02:39:34 -0000 Received: from [183.79.100.137] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 17 Jan 2017 02:39:34 -0000 Received: from [127.0.0.1] by omp506.mail.kks.yahoo.co.jp with NNFMP; 17 Jan 2017 02:39:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 203933.62537.bm@omp506.mail.kks.yahoo.co.jp Received: (qmail 15695 invoked by uid 60001); 17 Jan 2017 02:39:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20050223; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:X-YMail-JAS:Sender:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=nhnTcl3xFdKB7vhNYtxdeQcp5f915w1+mAw5vXMn/bgjnMbGElyGVqMV8GZmnMqa/qb9SeCiRGch8telXceIW0TN4l18aLkUdT0y7czng7fvl39CxUWlVHbFU9ZpLVsE ; Message-ID: <973148.15452.qm@web32005.mail.ssk.yahoo.co.jp> X-YMail-OSG: EF3dycAVM1mcp_wbXr6TrHNcKLwdcceHdZFiOHLPglPxLdQ6pVaNjB8C._nqjOkT_pRk7bREkD8gEKCDq8KG8lMim6wqHRHlIQ4NPAurdbnNPn.LDToLN1TU4UfCMf96tLeRbYZpcmOkgr3_.EVbt3XjCHwkaPwAvsDxKM_.5W57Qoa.FMkbYHq0mSQcHCYUJhFfP9FxLcrntLAnkQ.mMSwqxIg3iH8NO5A_ibCr5cnZiO6TelG25HqT1ems.7QxN.Dba7t7PmyG2qEBbGI_0oWhORJBMAAQRfVKlEj77pnC1sft1Am1WqPJyWjHtxirLWGDVJKoEAId7Z24ofiaJB4CLQWFkO0YyN77iBE2zx4rrPNs9s8lSOfpdEMFI7X4xqHU7sv4P0dah_VJpOKfnkTleSBQLGke72CVKbfQpgk5Sc8izSfIjKOChGxttHr5xvkvtE0LpY1cv0nlbEVF0mk6cE2FLP2R5OOclL_is1CCTHJBBtRV9HO9fBcjPev3XeRB2Tn83QfqFYZEU.LaCkMVH.f0mbb_usI31qkfpr7fH8sxM3A.V4YI0wCsJDnzR1gdYcgx.L02UYmbg4hX_SMzpYnpRzIedbwg8ZLQ Received: from [133.237.7.86] by web32005.mail.ssk.yahoo.co.jp via HTTP; Tue, 17 Jan 2017 11:39:33 JST X-RocketYMMF: itoshun X-Mailer: YahooMailWebService/0.8.111_70 X-YMail-JAS: ARSPEqUVM1msGKQDqIMdq4v0UyyKwy1jCEz7Sph2WMVCDH9wdvF_3Mx4pqs4ZOOvP6wiKr98X9bvLJxH42Y0AnQ9QESkpb0kKeytP8G6HqLKoJJlc5U5eTVu8qplGVGLfWs- References: <887714.44014.qm@web32005.mail.ssk.yahoo.co.jp> <902560.56013.qm@web32001.mail.ssk.yahoo.co.jp> <235703.87762.qm@web32001.mail.ssk.yahoo.co.jp> Date: Tue, 17 Jan 2017 11:39:33 +0900 (JST) From: "itoshun001@efeel.to" Reply-To: "itoshun001@efeel.to" Subject: Re: old JDBC driver (8.1-JDBC3) can connect to postgresql 9.x ? To: =?utf-8?B?Sm9yZ2UgU29sw7NyemFubw==?= Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi Jorge and John Thank you so much for your kind explanations in spite of questions about ob= soleted versions of JVM and not supported versions of JDBC driver=C2=A0 Now I have understood risks to use old version of JDBC driver such as a sch= ema catalog change. Then we will try not to use old version of JDBC to connect to postgresql 9.= x. Thanks much and best regards, itoshun ----- Original Message ----- >From: Jorge Sol=C3=B3rzano >To: "itoshun001@efeel.to" =20 >Cc: "pgsql-jdbc@postgresql.org" >Date: 2017/1/17, Tue 11:02 >Subject: Re: [JDBC] old JDBC driver (8.1-JDBC3) can connect to postgresql = 9.x ? >=20 > > > >On Mon, Jan 16, 2017 at 6:05 PM, itoshun001@efeel.to = wrote: > >Hi Jorge >> >>Thank you for your accurate answers and kind understanding for our situat= ion. >>Now I understand below and these info is very useful for our team ! >> >>=C2=A0 - the old driver(8.1-404 JDBC3)=C2=A0technically can connect to po= stgresql 9.3 but some new features should not be available, and we won't ge= t the bugfixes of later version. >> > > >=E2=80=8BYes technically, but as John points out =E2=80=8Byou could hit a = schema catalog change so while it *might* work, there is a chance to hit a = problem with pg_catalog updates, the pg_catalog is an internal postgresql t= able that contains many info consumed by the pgjdbc driver and newer versio= ns of the driver can handle all these variations, so for instance the pgjdb= c driver 9.3 Build 1103 can connect without problems to older postgresql ve= rsions like the one you are using (8.3) and it can connect to newer postgre= sql versions like 9.3. > >For many years the pgjdbc driver followed the versions of the server to de= clare some kind of compatibility, basically it means that the version you a= re using (8.1-404 JDBC3) was essentially for postgresql 8.1 and older, but = you are using it for postgresql 8.3 and it works (for you). From the versio= n 9.4.x of the driver that is no longer the case, and the current version 9= .4.1212 works on PostgreSQL 9.6 too. > >=C2=A0 > >>=C2=A0 - the driver should be highly compatible with earlier versions, an= d if our web app is using standard jdbc, then it should be practically tran= sparent the change (we don't even need to recompile). >> > > >Yes, it should work for postgresql 8.3 and postgresql 9.3 (and everything = between) that means that you should be using (based on the Java 5 version) = the PgJDBC 9.3 Build 1103 and not the 8.1-404, but as I said before, always= test for potential regressions. > >=C2=A0 > >>One more question which might be last question.... >> >>=C2=A0 (Q) My understanding below is correct ?? >> >>=C2=A0 =C2=A0 =C2=A0 Versions of jdbc driver that supported Java 5 can't = connect to postgresql 9.4 or later=C2=A0 >>=C2=A0 =C2=A0 =C2=A0 because=C2=A0 >>=C2=A0 =C2=A0 =C2=A0 =C2=A0- the versions of jdbc driver don't support=C2= =A0JDBC 4, 41 and 42 >>=C2=A0 =C2=A0 =C2=A0 =C2=A0- the versions of postreqsql don't support JDB= C3 >> > > >=E2=80=8B=E2=80=8BLet me be cristal clear=E2=80=8B, it *might* work =E2=80= =8Bbut again, you might hit a problem with pg_catalog updates and others co= mpatibility issues, so is NOT recomeded to use an older driver version to c= onnect to a newer postgresql version, you should always try to use the late= st driver. For example I have a web app that is still on PostgreSQL 9.1 but= it's using the latest driver version 9.4.1212. What I mean is that is bett= er to have a new jdbc driver connecting to an older postgresql instance tha= n the opposite. > > >To clarify your points, PostgreSQL knows nothing about Java or JDBC, the P= gJDBC driver is a pure Java driver that implements the native protocol of P= ostgreSQL, so PgJDBC "talks" in the PostgreSQL native language (the binary = or text protocol that postgres understand). So when a new version of Postgr= eSQL comes out, the driver has to "understand" the new or changed stuff so = an older version of the driver do not recognize the changed stuff and there= might hit a compatibility issue. > > >And as John said, Java 5 is obsolete, my recomendation is to try upgrading= the Java version, at least to Java 6, Java is for the most part backward c= ompatible, so you can use a new Java Runtime for a Java 5 compiled app. > > >Then try to update the PgJDBC driver to the latest version, and finally tr= y to upgrade the PostgreSQL server to a supported version. > > >As always, test, test and do more test for any potential problem. > >=C2=A0 > >>Best regards, >>itoshun >> > > --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc