Обсуждение: pgsql: Merge dissect() into cdissect() to remove a pile of near-duplica

Поиск
Список
Период
Сортировка

pgsql: Merge dissect() into cdissect() to remove a pile of near-duplica

От
Tom Lane
Дата:
Merge dissect() into cdissect() to remove a pile of near-duplicate code.

The "uncomplicated" case isn't materially less complicated than the full
case, certainly not enough so to justify duplicating nearly 500 lines
of code.  The only extra work being done in the full path is zaptreesubs,
which is very cheap compared to everything else being done here, and
besides that I'm less than convinced that it's not needed in some cases
even without backrefs.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4dd78bf37aa29d04b3f358b08c4a2fa43cf828e7

Modified Files
--------------
src/backend/regex/regexec.c |  626 ++++++-------------------------------------
1 files changed, 77 insertions(+), 549 deletions(-)