model-writtenrun 3967 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Noah Misch reported that interval values such as '1 day' and '24 hours' compare equal despite having distinguishable representations, making deduplication unsafe and potentially producing incorrect index-only scan results; he submitted development and stable-branch fixes to disable it #1.
- Peter Geoghegan questioned whether stable branches needed catalog changes, and Noah explained that the runtime guard was sufficient for correctness while catalog changes provided a small efficiency benefit; Peter deferred to Noah and supported committing the fix #2 #3 #4.
- Peter explained that ordinary amcheck checks would reject existing indexes with an obsolete deduplication-safety flag, prompting Noah to consider downgrading the error but favor rebuilding all interval indexes; Peter supported rebuilding and proposed an explanatory hint instead #5 #6 #7.
- Noah added the interval-specific amcheck hint and revised the rebuild guidance, explaining that disabling deduplication through ALTER INDEX would not clear the obsolete flag; Peter approved the revised patch #8 #9.
- Noah committed the revised development-branch patch with only an additional catalog version bump as 5f27b5f848, with corresponding backports through PostgreSQL 13.
- After the fix landed, Donghang Lin reported that the original example did not reproduce incorrect query results and proposed bytewise tie-breaking to permit deduplication of distinct interval representations; Noah clarified that the example demonstrated an assertion failure and saw no correctness obstacle to the proposal #10 #11.
- The thread ended with the fix landed and the alternative deduplication design unimplemented: Peter considered such a scheme possible but highlighted significant practical difficulties and pointed to earlier discussion #12.