model-writtenrun 3815 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Egor Rogov proposed exposing previously hidden range length, empty-fraction and bounds statistics through pg_stats in #1, and Tomas Vondra supported the addition in #2.
- Soumyadeep Chakraborty supplied naming and documentation improvements plus a reminder to update pg_stats whenever statistics slot kinds are added in #3, while raising the possibility of separate lower and upper bounds histograms.
- Egor favored exposing the stored representation without further transformation in #4, while Tomas explained the required catalog-version bump, favored a common range_ prefix and argued that readability could justify transformations in #5; Egor subsequently proposed proceeding with the simpler representation in #6.
- After roughly eighteen months, Tomas revived the work in #7 with a rebase and two C functions producing separate lower and upper bounds arrays, judging them more readable than combined ranges.
- Egor accepted the separate-array presentation and shortened column names in #8, and Tomas consolidated the changes, renamed the functions ranges_lower/ranges_upper and corrected misplaced documentation in #9.
- Justin Pryzby proposed sharing the duplicated extraction logic and adding SQL tests in #10; Tomas agreed and identified inconsistent handling of empty ranges and infinite bounds in #11.
- Egor argued against introducing several new polymorphic array types and concluded that runtime SQL type inference was disproportionate to this feature in #12 and #13; Tomas accepted continuing with documented helper functions and requested completion of the tests and boundary handling in #16.
- Egor implemented the shared helper, NULL handling for empty or infinite bounds, multidimensional-array support and regression tests in #17, while leaving a question about unfriendly type-error reporting; Gregory Stark rebased that work in #18 and noted that it might miss the release.
- Jian He tested the rebased patch and showed that its anyarray signature advertised a range-array result while actually returning an array of the range's element type in #19, also identifying incorrect documentation examples.
- Alexander Korotkov concluded that a new polymorphic pseudo-type was excessive and that extracting scalar bounds lost inclusiveness information, so #20 restored the stored combined-range representation and separated the catalog comments into their own patch.
- Jian requested clarification that empty ranges are excluded and asked for documentation of length calculation in #21 and #22; Egor accepted the simpler representation despite its reduced readability in #23, and Alexander incorporated the clarifications in #24.
- The discussion ended with Alexander acknowledging Egor's acceptance in #25, with the simplified series awaiting its planned push and the extraction functions left out.
- Alexander subsequently committed the comments patch from #24 unchanged as 441c8a3134 and its histogram patch with only an added catalog-version bump as bc3c8db8ae, completing the simplified series.