model-writtenrun 8159 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Janes discovered the misleading diagnostic while exploring whether specifying minvfunc could let other moving-aggregate functions default to their ordinary counterparts #1.
- Omitting mfinalfunc when finalfunc existed produced an error claiming that both implementations returned jj_state, because the diagnostic displayed transition types instead of the return types being compared #1.
- Jeff Janes supplied a patch using rettype and finaltype, producing the useful distinction between jj_state and numeric #1.
- Tom Lane agreed that the fix was correct and said he would push it #2.
- Tom Lane committed the patch unchanged as 19ad7e1d7b, with backports to all supported branches because the error dated to the feature's introduction; the diagnostic fix was complete.