]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix a pair of related issues with estimation of inequalities that involve
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Mar 2005 20:55:39 +0000 (20:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Mar 2005 20:55:39 +0000 (20:55 +0000)
commit9d388e1f3980a9d960c2f7c500f9c13a35c48d88
tree290284894684176438f4802dd8bd5c0eb6e24733
parentbb34970f91834b63b3fed44118f1996e5a062470
Fix a pair of related issues with estimation of inequalities that involve
binary-compatible relabeling of one or both operands.  examine_variable
should avoid stripping RelabelType from non-variable expressions, so that
they will continue to have the correct type; and convert_to_scalar should
just use that type and ignore the other input type.  This isn't perfect
but it beats failing entirely.  Per example from Michael Fuhr.
src/backend/utils/adt/selfuncs.c