pgsql: Fix huge_pages on Windows - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix huge_pages on Windows
Date
Msg-id E1oZRV2-000iMO-Om@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix huge_pages on Windows

Since Windows 10 1703, it is additionally necessary to pass a flag
called FILE_MAP_LARGE_PAGES to MapViewOfFile() to enable large pages at
map time.  This flag is ignored on older versions of Windows, where
large pages should still be able to work properly without setting it.
Note that the flag would be set only for binaries that knew about it at
compile-time, which should be more or less all the Windows environments
these days.

Since 495ed0e, Windows 10 is the minimum version of Windows supported by
Postgres, making this change easy to reason about on HEAD.  Per
discussion, no backpatch is done for the moment.

Reported-by: Okano Naoki
Author: Thomas Munro
Reviewed-by: Tom Lane, Michael Paquier, Julien Rouhaud
Discussion: https://postgr.es/m/17448-0a96583a67edb1f7@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fdd8937c071e85e2b7606939fb28284f008e15d1

Modified Files
--------------
src/backend/port/win32_shmem.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Message style improvements
Next
From: Christoph Berg
Date:
Subject: Re: pgsql: Fix createdb tests for C locale