pgsql: Miscellaneous cleanup of regular-expression compiler.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Miscellaneous cleanup of regular-expression compiler.
Дата
Msg-id E1ZnB7A-0005ia-BR@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2419ab8aa99b46bdf3a401501b5488b28870ee39

Modified Files
--------------
src/backend/regex/README            |   95 +++++++++++++++++++++++++++++++----
src/backend/regex/regc_nfa.c        |   55 +++++++-------------
src/backend/regex/regcomp.c         |   11 ++--
src/test/regress/expected/regex.out |   35 +++++++++++++
src/test/regress/sql/regex.sql      |   11 ++++
5 files changed, 153 insertions(+), 54 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve memory-usage accounting in regular-expression compiler.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix O(N^2) performance problems in regular-expression compiler.