Teach pattern_fixed_prefix() about collations.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3c381a55b0fa1c4ca328211e39df8e1a715129cb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-04-11T16:28:28Z
Releases: 9.1.0
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

PathChange+/−
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