Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edhYR-0000Ky-Su for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Jan 2018 19:14:51 +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 1edhYQ-0002Pi-NB for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Jan 2018 19:14:50 +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 1edhYQ-0002PY-E3 for pgsql-bugs@lists.postgresql.org; Mon, 22 Jan 2018 19:14:50 +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.89) (envelope-from ) id 1edhYM-0006zb-QY for pgsql-bugs@lists.postgresql.org; Mon, 22 Jan 2018 19:14:49 +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 w0MJEgUS005801; Mon, 22 Jan 2018 14:14:42 -0500 From: Tom Lane To: Alvaro Herrera cc: Kieran McCusker , pgsql-bugs@lists.postgresql.org Subject: Re: PG_VERSION_NUM formatted incorrectly In-reply-to: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql> References: <20180122190455.7zpoxjuesi4qk7jt@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 22 Jan 2018 16:04:55 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5799.1516648481.1@sss.pgh.pa.us> Date: Mon, 22 Jan 2018 14:14:41 -0500 Message-ID: <5800.1516648481@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > Kieran McCusker wrote: >> But shouldn't it be >> #define PG_VERSION_NUM 100100 > You're not being dense -- the way we're using it is indeed a bit odd. > But it was a concious decision to leave it like this: the reason is that > we've been using these two digits to indicate patch level rather than > major for so long, that is seems less likely to break version parsing > tools if we continue to do that. So the patch level for release 10 is > going to use the last two digits only, with the two middle digits > remaining constant 00 forever. Right. If we did it the other way, much code would think that 10.1 is a new major version, not a new minor version. regards, tom lane