diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-02-24 01:40:18 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-02-24 01:41:03 -0500 |
commit | 173e29aa5deefd9e71c183583ba37805c8102a72 (patch) | |
tree | f7e997faabaa7aa3e19e00ee561096404817d092 /src/backend/utils/adt/float.c | |
parent | 0c9e5d5e0d407013bf66af01942a7b2dd3342546 (diff) | |
download | postgresql-173e29aa5deefd9e71c183583ba37805c8102a72.tar.gz postgresql-173e29aa5deefd9e71c183583ba37805c8102a72.zip |
Fix the general case of quantified regex back-references.
Cases where a back-reference is part of a larger subexpression that
is quantified have never worked in Spencer's regex engine, because
he used a compile-time transformation that neglected the need to
check the back-reference match in iterations before the last one.
(That was okay for capturing parens, and we still do it if the
regex has *only* capturing parens ... but it's not okay for backrefs.)
To make this work properly, we have to add an "iteration" node type
to the regex engine's vocabulary of sub-regex nodes. Since this is a
moderately large change with a fair risk of introducing new bugs of its
own, apply to HEAD only, even though it's a fix for a longstanding bug.
Diffstat (limited to 'src/backend/utils/adt/float.c')
0 files changed, 0 insertions, 0 deletions