Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naALO-0000kM-Ux for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Apr 2022 06:01:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1naALN-0004RN-RC for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Apr 2022 06:01:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naAJl-0000Mm-3X for pgsql-bugs@lists.postgresql.org; Fri, 01 Apr 2022 05:59:29 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1naAJi-0003Pt-Tw for pgsql-bugs@lists.postgresql.org; Fri, 01 Apr 2022 05:59:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 391AA5C01E6; Fri, 1 Apr 2022 01:59:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 01 Apr 2022 01:59:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=+HZYmEZfcfDU+lfQtbns9+arjtVYWHB5prKFpL Hzo4w=; b=NFmf0fu0ijOcasox6mtUkqTdUc3EwGxDJ6iqzekxlpYuIarn9Azthu 8xWGiD38fVrwOVjB0nmvBRJtYyz87fxNNcDTPLfxMHvP7Lkj/PnJnRqjCIU768S2 XmLZqZwMAiiKJLoTM5xveoIaXXnzcss2+nlSsJIlW4iaVeRO205CJC3pYKamWDpy 2+Upc2gTrRzlO83ZlrvBEdXAd3In/JBDBtLaR2JuiDZW7FoulOjYFTGVy5znf9No ru5S41RldNdYTD1TR72Y0snRzO3UuYsT/0Zu6ZJaox34WOhOWjAt0bFnAZ3RS5Z5 ZhPi/TMkXhJXPxtyaMCJ44U2NYHhM4Ww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=+HZYmEZfcfDU+lfQt bns9+arjtVYWHB5prKFpLHzo4w=; b=hAb63hzMLwTU+Jx0pdbyg9Nm02tCocLRz PQM8EBpVLQR+5+6Yg48JYWgJ53e3LcuGbmHxv6aO0zxVODR9MzXBzCtxwNvEycEP Eqovk6a2Sibw4tNprljYg9uMBTIiasM/2DSXJ19QbaukDJGwdts/vgvId/pQ5IO+ 3eIOAdqIgS2shd0rrNsmYw8nuV4Pf3XFIRay5ojgFwNXW/NXJV1pS2iSJJdYRCdZ xmbGQVMRyASdzoDeSqZQjjIW/FYPvvX+Woajj7gi8Pz9wEDPVikUsQBLqWIF0hbc o6K0ZOUiVPo4rB1pC/BV+rml4o07zkyfvhhi3GQmL8mAay0xUhDaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeihedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 1 Apr 2022 01:59:24 -0400 (EDT) Date: Fri, 1 Apr 2022 14:59:22 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Thomas Munro , okano.naoki@jp.fujitsu.com, PostgreSQL mailing lists Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work. Message-ID: References: <17448-0a96583a67edb1f7@postgresql.org> <20220326082408.moh55zuecxjmewnm@jrouhaud> <20220331045908.bm5edcacvymgwwv2@jrouhaud> <20220331080055.hjrrsrd4lxwlt7f5@jrouhaud> <20220331104659.ol6pqe7s3tpkymuk@jrouhaud> <20220331110309.ws25d6dl5yyzprye@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Y2/fXk1ilpTRtwsm" Content-Disposition: inline In-Reply-To: <20220331110309.ws25d6dl5yyzprye@jrouhaud> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Y2/fXk1ilpTRtwsm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 31, 2022 at 07:03:09PM +0800, Julien Rouhaud wrote: > There's no such indication on IsWindowsVersionOrGreater(), but after seeing > various comments on forums from angry people, it may be a hint that it behaves > similarly. I'm not sure what to do at this point, maybe just always use the > flag (the PG_ version which may be 0), hoping that hopefully windows won't > define it if it can't handle it? Looking at the internals of versionhelpers.h, would it work to use as arguments for IsWindowsVersionOrGreater() the following, in this order? As of: - HIBYTE(_WIN32_WINNT_WINTHRESHOLD) - LOBYTE(_WIN32_WINNT_WINTHRESHOLD) - 1703 Just to drop an idea. -- Michael --Y2/fXk1ilpTRtwsm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJGlLoACgkQnvQgOdby QH35uQ/9Haw6bYF0bB2gnWCa2BQzCPtfLqdMX26dUESqztIch8CDo7BqFon+JGRG /q90h0iLMnx3yYvygILiN94uwFthhZBSLsPqlom7cKRmqkSfO37XZa2esTGHnGOd cKa9i1OYVmil0Nuxw9fIDzr1HIu16m0wC3fykLDEHYmvZhSjQ8PN/IH29e3bLuvi 1J2XO7iAIegB7xJLhbr6TgJg1NSul3Vwf2PwJyipWGoqqrZPNlj7PIQ6KvCJnrBh 9mT2sgOkitxfcyy00dko42kYD3SzBYPCDxCHwyo/XXxzs5WjqjfYjEDHjYABn2PG lF1Myx0zFZXjFJCp9D49DNBI8mwMDZksjUmDUJ8vtJyk2V2CklLZM6eNgNkE0MeF vUiHyuoo+WClNi33Bs/nTR3sbo4d1sgZWv1nk8LCSTrH0U0T9naR00g3wwtbxXiG tA0PSSxifoYRmnVqe+6iY1WyhXUMoglFrkFM6bvgVQfWYQ3Dc9wPeCC1t45GEFaP okHfbH3jqboh9n80WHpwb9YOXwhSnVBSqk6cgjo+UOONljwG7Oth657e2mDAJmPD 2v2Zeeog4Ze7BGLOY+G2JnSm2GPMmXr0Tmd1oO6f6+ddxgE7jyDElH8hNJhmZAE2 Vh6vDLZImtv9q5uTzEwD6dL3zrQF/fds7yes7E8NIAivl5W0wr8= =jSLt -----END PGP SIGNATURE----- --Y2/fXk1ilpTRtwsm--