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 1j8XQw-0007yz-Hr for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Mar 2020 22:51:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j8XQu-0008DX-C2 for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Mar 2020 22:51:36 +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 1j8XQu-0008DQ-3c for pgsql-hackers@lists.postgresql.org; Sun, 01 Mar 2020 22:51:36 +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 1j8XQo-0008Gy-Dg for pgsql-hackers@postgresql.org; Sun, 01 Mar 2020 22:51:35 +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 021MpQQP010990; Sun, 1 Mar 2020 17:51:26 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: Remove win32ver.rc from version_stamp.pl In-reply-to: <1ee46ac4-a9b2-4531-bf54-5ec2e374634d@2ndquadrant.com> References: <1ee46ac4-a9b2-4531-bf54-5ec2e374634d@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 24 Feb 2020 09:02:02 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10988.1583103086.1@sss.pgh.pa.us> Date: Sun, 01 Mar 2020 17:51:26 -0500 Message-ID: <10989.1583103086@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > This removes another relic from the old nmake-based Windows build. > version_stamp.pl put version number information into win32ver.rc. But > win32ver.rc already gets other version number information from the > preprocessor at build time, so it would make more sense if all version > number information would be handled in the same way and we don't have > two places that do it. This has a minor conflict in Solution.pm according to the cfbot. 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. This would eliminate some hunks from the patch in places where it's more convenient to have the version as a string, and it would avoid what could otherwise be a pretty painful cross-version incompatibility for extensions. We already provide PG_VERSION in both forms, so I don't see any inconsistency in doing likewise for PG_MAJORVERSION. regards, tom lane