Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bV0in-0004t8-Eo for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Aug 2016 18:16:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bV0in-0001z4-1I for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Aug 2016 18:16: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 1bV0hO-0007UK-OP for pgsql-hackers@postgresql.org; Wed, 03 Aug 2016 18:15:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bV0hM-000759-HJ for pgsql-hackers@postgresql.org; Wed, 03 Aug 2016 18:15:21 +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 u73IFILd002186; Wed, 3 Aug 2016 14:15:18 -0400 From: Tom Lane To: Robert Haas cc: Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: New version numbering practices In-reply-to: References: <7684.1470066581@sss.pgh.pa.us> <802ec140-635d-ad86-5fdf-d3af0e260c22@2ndquadrant.com> Comments: In-reply-to Robert Haas message dated "Wed, 03 Aug 2016 14:03:51 -0400" Date: Wed, 03 Aug 2016 14:15:18 -0400 Message-ID: <2185.1470248118@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 Robert Haas writes: > On Wed, Aug 3, 2016 at 12:12 PM, Peter Eisentraut > wrote: >> 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". Ugh. > This pretty much sucks. I suppose we could at least alleviate the > problem by back-patching some intelligence about the new scheme into > back-branches, but of course that will only help people if they > install newer minor releases. Yeah. I doubt there is much reason to assume that people would be using, say, a 9.5.5 psql and a 9.5.3 libpq or vice versa. Whatever the current client behavior is is what people will see. Having said that, this sort of problem is one reason we wanted to give ourselves a full year to implement the new scheme. If we put some appropriate fix into the back branches *now*, there would be a fair amount of daylight for that to spread into the field before any users would be seeing v10 servers in practice. So it seems like fixing libpq's parsing of server_version_num is something we definitely want to fix ASAP in all back branches. Is there anything else that's particularly bad? 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