model-writtenrun 662 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ewan Young reported that imported range-bounds histograms containing empty ranges or unordered bounds could cause planner assertions, errors, or invalid estimates, and proposed rejecting them with warnings in the attribute-statistics import path #1.
- Michael Paquier supported adding validation but identified the missing extended-statistics path, recommended sharing the helper through stat_utils.c, and argued that the issue did not warrant backpatching #3.
- Ewan Young supplied a revision that shared the existing validator between attribute and extended-statistics imports, added extended-statistics regression cases, and explicitly targeted master only #4.
- Michael Paquier committed that revision as df293aed46, preserving its behavior while adjusting the helper name, comments, test descriptions, and commit message.
- Michael Paquier confirmed that the patch had landed on HEAD after minor edits, including documenting NULL rejection by array_in_safe(); the thread ended with the submitted work committed and no backpatch planned #5.