Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVo8y-0001rm-EE for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 23:03:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVo8y-0007Zv-0H for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Aug 2016 23:03:08 +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 1bVo8Z-0007XW-SC for pgsql-hackers@postgreSQL.org; Fri, 05 Aug 2016 23:02:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bVo8X-0004zo-Dl for pgsql-hackers@postgreSQL.org; Fri, 05 Aug 2016 23:02:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u75N2c1E001247; Fri, 5 Aug 2016 19:02:39 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@postgreSQL.org Subject: Re: New version numbering practices In-reply-to: <802ec140-635d-ad86-5fdf-d3af0e260c22@2ndquadrant.com> References: <7684.1470066581@sss.pgh.pa.us> <802ec140-635d-ad86-5fdf-d3af0e260c22@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 03 Aug 2016 12:12:19 -0400" Date: Fri, 05 Aug 2016 19:02:38 -0400 Message-ID: <1246.1470438158@sss.pgh.pa.us> X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Eisentraut writes: > One hiccup I found is that server_version_num is not sent to clients. > Instead, libpq assembles the numeric version number itself from the > string version, and it will fail if it sees only one number (e.g., > 10devel). It will then set the version number to 0 for "unknown". Per discussion, I applied and back-patched the libpq/fe-exec.c part of this, so that back-branch clients will have a decent chance of understanding the new server_version format by the time it hits the field. In a quick look around, it seemed like we might also want to fix and back-patch the server version printing logic in psql's connection_warnings() function. However that would involve touching a translatable string so I thought it best not to do it just before back-branch releases. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers