Teach pattern_fixed_prefix() about collations.
Tom Lane <tgl@sss.pgh.pa.us>
Teach pattern_fixed_prefix() about collations. This is necessary, not optional, now that ILIKE and regexes are collation aware --- else we might derive a wrong comparison constant for index optimized pattern matches.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/indxpath.c | modified | +19 −15 |
| src/backend/utils/adt/selfuncs.c | modified | +97 −40 |
| src/include/utils/selfuncs.h | modified | +1 −0 |