Miscellaneous cleanup of regular-expression compiler.
Revert our previous addition of "all" flags to copyins() and copyouts(); they're no longer needed, and were never anything but an unsightly hack. Improve a couple of infelicities in the REG_DEBUG code for dumping the NFA data structure, including adding code to count the total number of states and arcs. Add a couple of missed error checks. Add some more documentation in the README file, and some regression tests illustrating cases that exceeded the state-count limit and/or took unreasonable amounts of time before this set of patches. Back-patch to all supported branches.
Showing
- src/backend/regex/README 84 additions, 11 deletionssrc/backend/regex/README
- src/backend/regex/regc_nfa.c 17 additions, 38 deletionssrc/backend/regex/regc_nfa.c
- src/backend/regex/regcomp.c 6 additions, 5 deletionssrc/backend/regex/regcomp.c
- src/test/regress/expected/regex.out 35 additions, 0 deletionssrc/test/regress/expected/regex.out
- src/test/regress/sql/regex.sql 11 additions, 0 deletionssrc/test/regress/sql/regex.sql
Loading
Please register or sign in to comment