model-writtenrun 3944 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Maxime Boyer reported Windows handle-duplication errors after upgrading PostgreSQL 11.17 to 14.9, affecting larger Jira databases #1.
- Tom Lane traced the error to DSM pinning routines, Andres Freund suggested that parallel queries activated the shared typmod registry, and Tom proposed disabling parallel queries as a temporary workaround #2 #3 #4.
- Thomas Munro first narrowed the failure to pinning freshly allocated memory, then recognized that the odd-numbered DSM handles identified main-region segments whose Windows handle-duplication calls should be skipped #5 #6.
- Thomas submitted guards for both pinning and unpinning main-region segments, and Alexander Lakhin reproduced the Windows failure and confirmed that the patch made the regression tests pass #7 #8.
- Maxime confirmed that the upgraded installation had min_dynamic_shared_memory set to 2 GB, supporting Thomas's diagnosis #9.
- Thomas committed the patch with an additional NULL initialization for the skipped-call path as dab889d60b, with backports through PostgreSQL 14, and announced that the fix would ship in the next point release while recommending a zero setting meanwhile #10.
- Maxime subsequently confirmed that setting min_dynamic_shared_memory to zero eliminated the errors, leaving the fix landed and the temporary workaround verified #11.