model-writtenrun 3199 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Bondarenko reported that EXTRACT rejected weeks from intervals and that documentation incorrectly described date inputs as timestamp casts, then demonstrated that interval hours could exceed the documented range #1 #2 #6.
- David Rowley proposed identifying which types support each field, while Francisco Olarte explained why intervals keep months, days, and smaller units separate because month lengths and daylight-saving transitions vary #4 #7.
- Tom Lane chose a general warning about unsupported field/type combinations instead of restructuring the field list, supplied century examples, and suggested defining interval weeks as days divided by seven #8.
- Tom separately expanded the interval-storage and normalization explanation, connecting EXTRACT results to the normalized output representation #9.
- Jian he requested an interval-specific hour description and questioned quarter extraction; Tom retained existing quarter support and consolidated the documentation patches with clearer output rules, justify-function examples, and consistent example spacing #10 #11 #12.
- Jian supplied an inline week-extraction proposal and highlighted strange negative-quarter results; Tom questioned its handling of zero and negative days, then announced the documentation commit with additional field descriptions #13 #14 eb1d008a7a.
- The documentation was backpatched through PostgreSQL 13, with PostgreSQL 12 omitted because it did not apply easily, while Tom reserved behavioral changes for the development branch and posted an initial week-and-quarter implementation eb1d008a7a #14 #15.
- After Jian discussed the missing documentation, Tom returned in May with a revised implementation using the stored month count for quarter signs, handling infinite intervals, and adding documentation and negative-interval tests #16 #17.
- Jian approved the revised documentation but asked whether weeks should start at one; Tom defended counting whole weeks from zero and moved the longstanding issue out of PostgreSQL 17's post-freeze open items into the next commitfest #19 #21.
- Martijn Wallet reported successful testing of the second implementation revision and corrected an accidental failure designation in his initial review #22 #23.
- Tom's July revision used lower-order fields to choose a quarter sign when months were zero, although he questioned whether this behavior was better; Jian also questioned whether the week example could confuse readers about equivalent interval representations #24 #25.
- Bruce Momjian tested both revisions and preferred ignoring days and time when extracting quarters; after considering leaving quarter behavior unchanged, Tom agreed to restore the second revision because it substantially improved negative-month results without depending on unrelated fields #26 #28 #29 #30.
- Bruce endorsed that choice in the thread's final message, and Tom subsequently committed the second implementation revision unchanged apart from rebase context, completing both changes and abandoning the third revision's lower-order sign handling #31 #17 6be39d77a7.