model-writtenrun 5639 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley reported that postgres_fdw pushed a custom ORDER BY operator without checking shippability and emitted ASC instead of the requested operator, potentially changing sort semantics #1.
- Ronan Dunklau distinguished aggregate-local ordering from query pathkeys and proposed checking operator-family shippability, generating the actual USING operator, and returning whole EquivalenceMembers to obtain the correct operator-family datatype while preserving the old core API for compatibility #2 #3.
- David Rowley and Ranier Vilela reviewed readability, assertions, and test stability; Ronan incorporated adjustments into the early revisions and disabled EXPLAIN costs in regression tests #4 #5 #6 #8 #9.
- David Rowley supplied a revised patch with correct Datum conversions, clearer lookup errors, earlier shippability checks, and shared ASC/DESC/USING/NULLS formatting; Ronan accepted it, and neither found a simpler alternative to the operator-family lookup approach #11 #12 #13.
- David Zhang reported successful contrib testing, Ronan confirmed installcheck-world passed and rebased the patch, and Zhang later clarified that his broader test failure belonged to other extensions #14 #15 #19.
- Zhihong Yu requested a fuller explanation and a clearer function name; Ronan expanded the description while retaining the established is_foreign naming convention, which Zhihong accepted #16 #17 #18.
- After several months, Tom Lane found missing shippability checks and order-sensitive equivalence-member selection, then moved selection into postgres_fdw and made it search for a suitable shippable member; the obsolete core function would be removed only on HEAD to preserve stable-branch API compatibility #20.
- Ronan accepted Tom's revision, which landed unchanged apart from rebase metadata as f3dd9fe1dd and was backpatched to all supported branches; Tom's final message confirmed the push, leaving no patch pending in this thread #21 #22.