pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: okano.naoki@jp.fujitsu.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
Date: Fri, 1 Apr 2022 14:59:22 +0900
Message-ID: <YkaUuhwppy2hiBi9@paquier.xyz> (raw)
In-Reply-To: <20220331110309.ws25d6dl5yyzprye@jrouhaud>
References: <17448-0a96583a67edb1f7@postgresql.org>
	<Yj6oxYsBE5LXA8ZP@paquier.xyz>
	<20220326082408.moh55zuecxjmewnm@jrouhaud>
	<CA+hUKGLwOSf-QwVtCcKx9xvugN2BSzEBBeD5DNyTXgcSRp5sTw@mail.gmail.com>
	<YkQMyhsP7xgLDDT/@paquier.xyz>
	<20220331045908.bm5edcacvymgwwv2@jrouhaud>
	<YkVbbZBiC4yxXPuc@paquier.xyz>
	<20220331080055.hjrrsrd4lxwlt7f5@jrouhaud>
	<20220331104659.ol6pqe7s3tpkymuk@jrouhaud>
	<20220331110309.ws25d6dl5yyzprye@jrouhaud>

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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (25+ messages)  latest in thread

Message-ID: <YkaUuhwppy2hiBi9@paquier.xyz>
Permalink:  ../YkaUuhwppy2hiBi9@paquier.xyz/
Also on:    postgresql.org/message-id/YkaUuhwppy2hiBi9@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, rjuju123@gmail.com, thomas.munro@gmail.com
  Subject: Re: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
  In-Reply-To: <YkaUuhwppy2hiBi9@paquier.xyz>
  References: <17448-0a96583a67edb1f7@postgresql.org> <Yj6oxYsBE5LXA8ZP@paquier.xyz> <20220326082408.moh55zuecxjmewnm@jrouhaud> <CA+hUKGLwOSf-QwVtCcKx9xvugN2BSzEBBeD5DNyTXgcSRp5sTw@mail.gmail.com> <YkQMyhsP7xgLDDT/@paquier.xyz> <20220331045908.bm5edcacvymgwwv2@jrouhaud> <YkVbbZBiC4yxXPuc@paquier.xyz> <20220331080055.hjrrsrd4lxwlt7f5@jrouhaud> <20220331104659.ol6pqe7s3tpkymuk@jrouhaud> <20220331110309.ws25d6dl5yyzprye@jrouhaud> <YkaUuhwppy2hiBi9@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox