diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-11 12:28:28 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-11 12:28:28 -0400 |
| commit | 3c381a55b0fa1c4ca328211e39df8e1a715129cb (patch) | |
| tree | c96990fe29040c829acb756a197831b778cb784d /src/include | |
| parent | dad1f4638235e5ff5696b948b88ba24cd99b415e (diff) | |
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/selfuncs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/selfuncs.h b/src/include/utils/selfuncs.h index e9913aa049f..c1b417ad8fb 100644 --- a/src/include/utils/selfuncs.h +++ b/src/include/utils/selfuncs.h @@ -132,6 +132,7 @@ extern double histogram_selectivity(VariableStatData *vardata, FmgrInfo *opproc, extern Pattern_Prefix_Status pattern_fixed_prefix(Const *patt, Pattern_Type ptype, + Oid collation, Const **prefix, Const **rest); extern Const *make_greater_string(const Const *str_const, FmgrInfo *ltproc); |
