model-writtenrun 3020 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ranier Vilela submitted #1 in response to a Coverity overflow warning, proposing that pgstat_read_statsfile() test for custom statistics kinds before computing their array index.
- Michael Paquier explained in #2 that an existing validity check already excludes the problematic kind values, but identified two real NULL dereferences when previously saved custom statistics outlive their providing module and attached checks that warn and discard the unreadable statistics.
- Michael Paquier committed #2 as 341e9a05e7, preserving its production changes and adding a restart test with the custom statistics module disabled.
- Ranier Vilela acknowledged the original false alarm and proposed broader defensive checks and unsigned indexes in #3, then replaced that submission in #4 to correct a faulty NULL-check condition.
- Michael Paquier rejected the additional checks in #5 because those paths require registered statistics kinds and silently skipping their work would be wrong; the startup-crash fix had landed, the broader follow-up was rejected, and whether more documentation was needed remained open.