postgresql/src/backend/port
Michael Paquier fdd8937c07 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
2022-09-17 15:39:55 +09:00
..
aix Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
tas Remove HP-UX port. 2022-07-08 14:05:05 +12:00
win32 Cleanup more code and comments related to Windows NT4 (XP days) 2022-08-30 09:52:58 +09:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
atomics.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
posix_sema.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
sysv_sema.c Remove configure probes for sys/ipc.h, sys/sem.h, sys/shm.h. 2022-08-14 00:09:47 +12:00
sysv_shmem.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
win32_sema.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
win32_shmem.c Fix huge_pages on Windows 2022-09-17 15:39:55 +09:00