model-writtenrun 2125 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart proposed GetNamedDSMHash() in #1 to hide the repeated work of creating two LWLock tranches, a DSA, and a shared hash table.
- Dagfinn Ilmari Mannsåker and Sami Imseih questioned hard-coded lengths and initialization layout in #2 and #3; Nathan introduced dedicated length and suffix macros in #4, keeping these names independent of NAMEDATALEN.
- Sami's pg_stat_statements experiment exposed user-visible tranche suffixes and backend-dependent wait-event names in #5 and #8; Nathan documented the suffixes in #9, while discussion of shared tranche-name registration remained separate from this patch in #15 and #16.
- Nathan added explicit hash-state initialization in #10, and Florents Tselai's review in #11 led to a 127-byte usable registry-name limit and a typo correction in #12.
- Florents and Rahila Syed requested access to DSA allocation in #17 and #18; Nathan argued for keeping the hash's backing DSA private in #22, and Florents accepted using a separate DSA in #23.
- Nathan added GetNamedDSA() and a test storing DSA pointers in a hash in #24, but avoided implementing hash creation through that API because it would require two registry entries without saving much code.
- After testing the expanded API, Sami reiterated his preference for an unsuffixed primary hash wait event in #25; Nathan implemented that in #26, and Sami approved it in #27.
- Rahila questioned auxiliary DSM allocations and repeated attachment behavior in #28; Nathan added dsa_is_attached() and explicit duplicate-attachment errors in #29, explaining that lost backend-local DSA and hash pointers could not safely be recovered.
- Rahila proposed a generic registry and caught a dsa_handle used where dsa_pointer was required in #30; Nathan reworked the registry into tagged union entries in #31, eliminating auxiliary metadata segments, adding type checks, and renaming the hash API to GetNamedDSHash().
- Nathan corrected attachment checks in #32, and Rahila endorsed the redesign in #33 while proposing future reuse of an existing DSA; Nathan remained concerned about exposing internal DSA lifetime and implementation details in #34.
- Nathan staged #35, and Rahila reported successful use in #36 while asking about parameter validation and removal; Nathan deferred parameter comparison because function pointers cannot safely be shared across backends and referred removal discussion elsewhere in #37.
- Nathan landed #35 as fe07100e82 and announced it in #38; the implementation was unchanged apart from rebase context, while the commit message clarified unsupported detach/destroy use cases and deferred registry removal.
- The buildfarm's cross-version upgrade tests then failed because renamed test functions were missing, as Nathan reported in #39; 0c2b7174c3 restored their original C and SQL names, and Nathan confirmed the fix in #40.
- The feature and upgrade-test fix were committed by the end of the thread; Florents opened a separate documentation patch for the extension-author manual in #41, leaving documentation and the discussed lifecycle enhancements as follow-up work.