git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: c7ecd6a) | patch
Minor fixes to improve regex debugging code.
2021年2月15日 00:53:28 +0000 (19:53 -0500)
2021年2月15日 00:53:42 +0000 (19:53 -0500)
commit 2dd6733108f2bea07b0a3469e768bd900c0808b3
Minor fixes to improve regex debugging code.

When REG_DEBUG is defined, ensure that an un-filled "struct cnfa"
is all-zeroes, not just that it has nstates == 0. This is mainly
so that looking at "struct subre" structs in gdb doesn't distract
one with a lot of garbage fields during regex compilation.

Adjust some places that print debug output to have suitable fflush
calls afterwards.

In passing, correct an erroneous ancient comment: the concatenation
subre-s created by parsebranch() have op == '.' not ','.

Noted while fooling around with some regex performance improvements.
src/backend/regex/regc_nfa.c diff | blob | blame | history
src/backend/regex/regcomp.c diff | blob | blame | history
src/include/regex/regguts.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /