model-writtenrun 5506 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Steve Chavez reported that custom GUCs with NULL short descriptions could crash SHOW ALL and proposed assertions on the name and description in #1.
- Nathan Bossart suggested accepting missing descriptions instead of relying on assertions in #2, and Michael Paquier supported that approach to avoid breaking extensions during minor upgrades while identifying another NULL-sensitive path in GetConfigOptionByNum() in #3.
- Steve replaced the assertions with NULL handling in ShowAllGUCConfig() in #4, but Michael pointed out that the GetConfigOptionByNum() guard was still missing in #5.
- Andres Freund proposed compiler nonnull annotations in #6; Nathan incorporated that idea for name and valueAddr and added the missing description guard while forwarding Steve's fix in #7.
- Michael raised compiler compatibility concerns and proposed separating the backpatchable bug fix from the development-only annotations in #8, with Tom Lane agreeing and questioning attribute detection in #9; Nathan split the patches and adopted __has_attribute(nonnull) in #10.
- Michael committed the unchanged crash-fix portion of #10 as f1431f3bff, with backports through PostgreSQL 10; his announcement in #11 explained that the translation-related GetConfigOptionByNum() guard was needed only from PostgreSQL 12 onward.
- Michael accepted the attribute detection approach but proposed waiting until PostgreSQL 16 development opened in #11, and Tom agreed that the annotations were not a bug fix in #12.
- Nathan reposted only the outstanding annotation patch and registered it for a later commitfest in #13.
- After PostgreSQL 16 development opened, Michael committed #13 with only comment wrapping and rebase differences as 0507977aa4 and announced it in #14; Nathan's acknowledgment in #15 closed the thread with both changes landed.