Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ennkT-0000V4-79 for pgsql-jdbc@arkaria.postgresql.org; Mon, 19 Feb 2018 15:53:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ennkS-00063P-1u for pgsql-jdbc@arkaria.postgresql.org; Mon, 19 Feb 2018 15:53:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ennkR-00063F-SO for pgsql-jdbc@lists.postgresql.org; Mon, 19 Feb 2018 15:52:59 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ennkP-0001X3-6Q for pgsql-jdbc@postgresql.org; Mon, 19 Feb 2018 15:52:59 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1enniD-0000zX-Ge for pgsql-jdbc@postgresql.org; Mon, 19 Feb 2018 16:50:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: JDBC driver returns different version strings on Ubuntu and CentOS Date: Mon, 19 Feb 2018 16:52:33 +0100 Lines: 11 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 X-Mozilla-News-Host: news://news.gmane.org:119 Content-Language: en-GB X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have just noticed that DatabaseMetaData.getDatabaseProductVersion() returns the String "10.2.2" when connected to a server running on Ubuntu, but returns "10.2" when connected to a server running on CentOS or Windows. Is there a specific reason for this? It's a bit confusing because 10.2.2 doesn't actually exists as a "real" Postgres version. This happens with the driver versions 42.1.4 and 42.2.1 (haven tried others) Regards Thomas