opt: normalize LIKE 'forest%' to x >= 'forest' AND x < 'foresu'
#52153
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
good first issue
Index constraint generation currently supports constraints from LIKE expressions, but the opt statistics code does not. A simple improvement would be to handle the case where the expression is exactly equivalent to a range of values.
Note that such a rule would need to handle escaping correctly (which the index constraints code currently does not, see #44123).
The text was updated successfully, but these errors were encountered: