model-writtenrun 5413 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Okano Naoki reported that PostgreSQL 14.2 did not use large pages on Windows 10 despite huge_pages=on, identifying the missing FILE_MAP_LARGE_PAGES mapping flag in #1.
- Michael Paquier proposed passing an additional access flag in #2, and Thomas Munro supplied the first patch with a compile-time guard in #5, while questioning compatibility with older Windows versions and proposing backpatching to PostgreSQL 11.
- Michael Paquier expanded the patch in #7 to check Windows versions at runtime and reject unsupported huge_pages=on configurations; subsequent discussion identified older compiler support as another obstacle to backpatching in #9.
- Julien Rouhaud's Windows 11 testing showed that forcing the mapping flag enabled large pages, but the runtime version check prevented its use because Windows reported an older version; he documented this in #11 and proposed dispensing with the runtime check in #12.
- Alternative version-detection mechanisms were discussed but not adopted: Julien Rouhaud favored using the flag whenever defined in #16, Magnus Hagander explained the kernel-only nature of a proposed API in #18, and Wilm Hoyer supplied helper-executable and registry approaches in #19 and #22, with Julien questioning the helper's cost in #21.
- After Windows 10 became the minimum supported runtime for the development branch, Michael Paquier returned to Thomas Munro's simple flag-setting approach in #23, initially assuming the flag would always be defined.
- Michael Paquier found documentation stating that older Windows versions ignore the flag and reopened the backpatch question in #24; Tom Lane recommended a development-branch-only fix because of release risk in #25, and Julien Rouhaud agreed in #26.
- Michael Paquier committed fdd8937c07 from #23 with the compile-time guard restored, crediting Thomas Munro as author; his final message #27 confirmed that the fix landed only on HEAD, leaving stable branches unchanged.