aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-04-13 18:01:31 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-04-13 18:01:31 +0000
commitcc39aca7d4a317a66db51a2180f7fee6e76084bd (patch)
tree55d7fe6adec711809d548505b03703610903ef6e /src/backend/access/transam/xlogutils.c
parentdcdf738abb013082294b9a8afb15b8405e042d47 (diff)
downloadpostgresql-cc39aca7d4a317a66db51a2180f7fee6e76084bd.tar.gz
postgresql-cc39aca7d4a317a66db51a2180f7fee6e76084bd.zip
Fix similar_escape() so that SIMILAR TO works properly for patterns involving
alternatives ("|" symbol). The original coding allowed the added ^ and $ constraints to be absorbed into the first and last alternatives, producing a pattern that would match more than it should. Per report from Eric Noriega. I also changed the pattern to add an ARE director ("***:"), ensuring that SIMILAR TO patterns do not change behavior if regex_flavor is changed. This is necessary to make the non-capturing parentheses work, and seems like a good idea on general principles. Back-patched as far as 7.4. 7.3 also has the bug, but a fix seems impractical because that version's regex engine doesn't have non-capturing parens.
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions