model-writtenrun 2017 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Aidar Imamov reported that attaching to an existing shared hash table loses its fixed-size property under EXEC_BACKEND, allowing unexpected shared-memory growth, and proposed restoring the property from the attaching caller's flags in #1.
- Tom Lane confirmed the bug and identified predicate-lock tables as the affected use, but argued that attachment must preserve the existing table's properties rather than trust caller flags; he proposed storing isfixed in the shared header in #2.
- Aidar Imamov accepted that design and submitted a revision that stores isfixed in HASHHDR and copies it into the local HTAB during attachment in #3.
- Tom Lane simplified the revision by keeping only the shared isfixed field and reading it directly in element_alloc(), reasoning that this allocation path should not be hot for shared tables; he committed that adjustment as 5457ea46d1 and explained it in #4.
- The thread ended with the fix committed and no backpatch planned: Tom Lane cited the absence of Windows shared-memory exhaustion complaints and the risk of an unwelcome behavior change in a minor release in #4.