Back-patch fix for extraction of fixed prefixes from regular expressions.
Tom Lane <tgl@sss.pgh.pa.us>
Back-patch fix for extraction of fixed prefixes from regular expressions. Back-patch of commits 628cbb50ba80c83917b07a7609ddec12cda172d0 and c6aae3042be5249e672b731ebeb21875b5343010. This has been broken since 7.3, so back-patch to all supported branches.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/regex/Makefile | modified | +1 −1 |
| src/backend/regex/regc_color.c | modified | +10 −1 |
| src/backend/regex/regc_nfa.c | modified | +17 −17 |
| src/backend/regex/regcomp.c | modified | +1 −1 |
| src/backend/regex/rege_dfa.c | modified | +5 −6 |
| src/backend/regex/regprefix.c | added | +256 −0 |
| src/backend/utils/adt/regexp.c | modified | +65 −0 |
| src/backend/utils/adt/selfuncs.c | modified | +38 −154 |
| src/include/regex/regex.h | modified | +4 −0 |
| src/include/regex/regguts.h | modified | +22 −8 |
| src/include/utils/builtins.h | modified | +2 −0 |