model-writtenrun 2063 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmitry Mityugov proposed replacing two assertions with pg_assume to suppress GCC 15 uninitialized-value warnings, reporting successful builds and regression tests in #1; Erik Rijkers independently confirmed clean GCC 15 builds with and without assertions in #2.
- Tom Lane proposed a different fix in #3: make JsonbIteratorNext always initialize val->type, avoiding dependence on the compiler's reasoning about assertions and iterator tokens.
- Andres Freund supported Tom's replacement and clarified that pg_assume already behaves as Assert in assertion-enabled builds in #4; Tom acknowledged the correction but maintained that explicit initialization was more robust in #5.
- Tom separately explained why mismatched iterator tokens cannot include WJB_DONE and attached a comment-and-assertion clarification in #6, proposing that the warning fix be backpatched while this cosmetic change remain on the development branch.
- Tom committed the initialization patch from #3 unchanged apart from its base as 6c93bf735c, credited Andres's review, and backpatched the fix through PostgreSQL 13.
- Tom committed the separate clarification from #6 with minor comment wording changes as 2a3a396432, completing both changes and leaving the original pg_assume proposal superseded.
- After both commits, Peter Geoghegan questioned whether modern MSVC still required dummy initialization after elog(ERROR) and proposed removing existing workarounds in #7 and #9; Tom raised compiler-version uncertainty and backpatch-conflict risks in #8, #10, and #12.
- Peter Geoghegan acknowledged the cleanup risk but still considered it worth exploring in #13; Peter Eisentraut closed the thread by reporting that the compiler problem remained unresolved in #14, leaving the broader cleanup open while both jsonb changes had landed.