Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jBJp2-0006ZO-KT for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2020 14:56:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBJp1-0004vV-G4 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2020 14:55:59 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBJp1-0004vO-7T for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2020 14:55:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBJoz-00045N-1N for pgsql-hackers@postgresql.org; Mon, 09 Mar 2020 14:55:58 +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 029EtrPb010433; Mon, 9 Mar 2020 10:55:53 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: Remove win32ver.rc from version_stamp.pl In-reply-to: <5599e5cb-7d07-c4fc-24f9-273c4b7a2eec@2ndquadrant.com> References: <1ee46ac4-a9b2-4531-bf54-5ec2e374634d@2ndquadrant.com> <10989.1583103086@sss.pgh.pa.us> <5599e5cb-7d07-c4fc-24f9-273c4b7a2eec@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 09 Mar 2020 08:43:25 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10431.1583765753.1@sss.pgh.pa.us> Date: Mon, 09 Mar 2020 10:55:53 -0400 Message-ID: <10432.1583765753@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2020-03-01 23:51, Tom Lane wrote: >> In general, while I'm on board with the idea, I wonder whether it >> wouldn't be smarter to keep on defining PG_MAJORVERSION as a string, >> and just add PG_MAJORVERSION_NUM alongside of it. > Agreed. Here is another patch. This version LGTM. (I can't actually test the Windows aspects of this, but I assume you did.) I'm wondering a little bit whether it'd be worth back-patching the additions of the new #defines. That would cut about five years off the time till they could be relied on by extensions. However, I'm not sure anyone is eager to rely on them, so it may not be worth the effort. regards, tom lane