]> granicus.if.org Git - postgresql/commit
Miscellaneous cleanup of regular-expression compiler.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Oct 2015 19:52:12 +0000 (15:52 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 Oct 2015 19:52:12 +0000 (15:52 -0400)
commit4528f9d69dd2030c8a02218f7e483264627e9ef4
treec7bb39dc5c16528ecf41f9c2dc338fee388ebe92
parentad5e5a62aff7e8fa9bc97ec83cfd015606026fcb
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.
src/backend/regex/README
src/backend/regex/regc_nfa.c
src/backend/regex/regcomp.c
src/test/regress/expected/regex.out
src/test/regress/sql/regex.sql