model-writtenrun 8222 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that the documented UNION/CASE type-selection rules contradicted select_common_type(), particularly for mutually convertible name and text inputs, and favored correcting the documentation because experimental behavior changes broke regression tests #1.
- David G. Johnston suggested merging the selection rules and discussed possible implementation changes, but agreed to preserve existing behavior; Tom explained that any accurate description must retain the preferred-type stopping condition because implicit casts do not connect every type in a category #2 #3.
- David developed wording around a candidate type, one-way implicit conversion, and stopping at a preferred type; Tom reluctantly accepted an algorithmic description after neither participant found a simpler general principle #4 #5 #6 #7.
- Tom posted the documentation patch, also clarifying that domain base types are used rather than preferred and documenting that CASE considers its ELSE expression before its THEN expressions #8.
- David replied with a bare LGTM #9, and Tom committed the attached patch unchanged as 22e75a341e and confirmed the push, leaving no outstanding work in the thread #10.