forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfdd8937
committed
Fix huge_pages on Windows
Since Windows 10 1703, it is additionally necessary to pass a flagcalled FILE_MAP_LARGE_PAGES to MapViewOfFile() to enable large pages atmap time. This flag is ignored on older versions of Windows, wherelarge 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 atcompile-time, which should be more or less all the Windows environmentsthese days.Since495ed0e, Windows 10 is the minimum version of Windows supported byPostgres, making this change easy to reason about on HEAD. Perdiscussion, no backpatch is done for the moment.Reported-by: Okano NaokiAuthor: Thomas MunroReviewed-by: Tom Lane, Michael Paquier, Julien RouhaudDiscussion:https://postgr.es/m/17448-0a96583a67edb1f7@postgresql.org1 parenta0b6515 commitfdd8937
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
| 221 | + | |
221 | 222 |
| |
222 | 223 |
| |
223 | 224 |
| |
| |||
355 | 356 |
| |
356 | 357 |
| |
357 | 358 |
| |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
358 | 366 |
| |
359 | 367 |
| |
360 | 368 |
| |
361 | 369 |
| |
362 | 370 |
| |
363 |
| - | |
| 371 | + | |
364 | 372 |
| |
365 | 373 |
| |
366 | 374 |
| |
|
0 commit comments
Comments
(0)