From 27af91438b68f46f4015853b6f75c6f5c3a8650c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 19 Feb 2012 18:57:38 -0500 Subject: Create the beginnings of internals documentation for the regex code. Create src/backend/regex/README to hold an implementation overview of the regex package, and fill it in with some preliminary notes about the code's DFA/NFA processing and colormap management. Much more to do there of course. Also, improve some code comments around the colormap and cvec code. No functional changes except to add one missing assert. --- src/backend/regex/regcomp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/regex/regcomp.c') diff --git a/src/backend/regex/regcomp.c b/src/backend/regex/regcomp.c index bd4d4c37619..4f9da5b0468 100644 --- a/src/backend/regex/regcomp.c +++ b/src/backend/regex/regcomp.c @@ -356,6 +356,7 @@ pg_regcomp(regex_t *re, ZAPCNFA(g->search); v->nfa = newnfa(v, v->cm, (struct nfa *) NULL); CNOERR(); + /* set up a reasonably-sized transient cvec for getcvec usage */ v->cv = newcvec(100, 20); if (v->cv == NULL) return freev(v, REG_ESPACE); -- cgit v1.2.3