]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commitf189747d4692bddc2f07c622d7d83b1bcbf48fbf
tree3da92f7f47389dd9449c2bc80b29f37cc5d29015
parent0ecf4a9e55d7a9322f3aaee31bbd68ba01b2820e
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