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 1jBcbG-0006Xa-87 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2020 10:59:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBcbE-0006px-JE for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2020 10:59:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBcXT-0007Dj-Kj for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2020 10:55:08 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBcXP-0006ys-E6 for pgsql-hackers@postgresql.org; Tue, 10 Mar 2020 10:55:05 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9957C9E8; Tue, 10 Mar 2020 06:55:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 10 Mar 2020 06:55:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=tZTMEEDbTOhMIw+dUwNYKTu75nloZUx9xnA8tbC2F IE=; b=tX0zHnVd1Zvlaka84wMN7EkA7mzFSMIdfbDdSL0WjfC0OLdfzFYbYD/CB PBNDB4p18pkSX6C9EHYeS2zEPrVT5PMMZ53PSKg2GhP4FuYAfpOxGus2sny7x3gW LW6b/aXpvyvWu0KtVvkcWHKn7Jk4zC/v5MQOlebVxblFhPvbgZfyiIuicKfxJMoC pAQluIqCj8NCfdBb2VC+TumkWcOKsOtF/7hPjmgcgPiQS9Q5KZQyfWCY1cI7KBnP 5/h6TxUIAgywNtFE+I8ANy21Ys52us/xLFPSYgHmklvPqXrDPG8TrT7kNfW5OPJl h29yWGAcRTGJm32a+HrD2CvPhz+Qw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvtddgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmqeenucffohhmrg hinhepvdhnughquhgrughrrghnthdrtghomhenucfkphepleefrddvgedvrddvudefrddv gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepph gvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id A6EE43280067; Tue, 10 Mar 2020 06:54:59 -0400 (EDT) Subject: Re: Remove win32ver.rc from version_stamp.pl To: Tom Lane References: <1ee46ac4-a9b2-4531-bf54-5ec2e374634d@2ndquadrant.com> <10989.1583103086@sss.pgh.pa.us> <5599e5cb-7d07-c4fc-24f9-273c4b7a2eec@2ndquadrant.com> <10432.1583765753@sss.pgh.pa.us> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <67111310-fbdb-132d-05b1-9566a6b59e98@2ndquadrant.com> Date: Tue, 10 Mar 2020 11:54:58 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <10432.1583765753@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-03-09 15:55, Tom Lane wrote: > 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.) committed > 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. I doubt external code really needs these symbols. You can always use PG_VERSION_NUM. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services