You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Revise collation derivation method and expression-tree representation.
All expression nodes now have an explicit output-collation field, unlessthey are known to only return a noncollatable data type (such as booleanor record). Also, nodes that can invoke collation-aware functions storea separate field that is the collation value to pass to the function.This avoids confusion that arises when a function has collatable inputsand noncollatable output type, or vice versa.Also, replace the parser's on-the-fly collation assignment method witha post-pass over the completed expression tree. This allows us to usea more complex (and hopefully more nearly spec-compliant) assignmentrule without paying for it in extra storage in every expression node.Fix assorted bugs in the planner's handling of collations by makingcollation one of the defining properties of an EquivalenceClass andby converting CollateExprs into discardable RelabelType nodes duringexpression preprocessing.