]> granicus.if.org Git - postgresql/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:58 +0000 (20:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Mar 2005 20:55:58 +0000 (20:55 +0000)
commit90ce397ad64980b214649aa786dde2db3d80e887
tree400b0ea4c45417fb21fe4d47bc40e17ea7423dce
parentd4f727808f11e93deacecf22ca8d7295cf71c9f2
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