Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTHdq-0000jL-C3 for pgsql-jdbc@arkaria.postgresql.org; Tue, 17 Jan 2017 00:28:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTHdp-0005vT-7w for pgsql-jdbc@arkaria.postgresql.org; Tue, 17 Jan 2017 00:28:49 +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 1cTHdn-0005vH-Nx for pgsql-jdbc@postgresql.org; Tue, 17 Jan 2017 00:28:47 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTHdl-0002Se-94 for pgsql-jdbc@postgresql.org; Tue, 17 Jan 2017 00:28:46 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id v0H0Sev25363 for ; Mon, 16 Jan 2017 16:28:40 -0800 Subject: Re: old JDBC driver (8.1-JDBC3) can connect to postgresql 9.x ? To: pgsql-jdbc@postgresql.org 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> From: John R Pierce Message-ID: Date: Mon, 16 Jan 2017 16:28:47 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <235703.87762.qm@web32001.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -5.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 On 1/16/2017 4:05 PM, itoshun001@efeel.to wrote: > Versions of jdbc driver that supported Java 5 can't connect to postgresql 9.4 or later > because > - the versions of jdbc driver don't support JDBC 4, 41 and 42 > - the versions of postreqsql don't support JDBC3 java 5 is obsolete and no longer supported, so the postgres jdbc driver no longer goes to the extra effort of testing to support it. postgresql itself knows nothing about jdbc any version, thats purely between Java and the JDBC driver. the major issue I can see that you might hit using an old jdbc driver with a much newer postgres database server is catalog changes... the old driver was written with an understanding of pg_catalog circa postgres 8.1 or 8.3... some things have changed, the new version supports both new and old catalog changes. the other potential issue is somewhere around 8.4 or 9.0, postgresql got stricter on automatic datatype casting, and there are certain implicit type casts that would work in 8.x that no longer work. I do forget exact version this happened. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc