aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_wrap.cpp
diff options
context:
space:
mode:
authorAndrew Gierth <rhodiumtoad@postgresql.org>2018-08-23 20:01:03 +0100
committerAndrew Gierth <rhodiumtoad@postgresql.org>2018-08-23 21:43:51 +0100
commit0b42bd459af0532c6894d7699747986eaf4e86b5 (patch)
tree97df9d0ef6aef9710dd2fe111e27490ccba124fe /src/backend/jit/llvm/llvmjit_wrap.cpp
parentc781a066ea4f0de0dc46e953ba55e10943199d6d (diff)
downloadpostgresql-0b42bd459af0532c6894d7699747986eaf4e86b5.tar.gz
postgresql-0b42bd459af0532c6894d7699747986eaf4e86b5.zip
Reduce an unnecessary O(N^3) loop in lexer.
The lexer's handling of operators contained an O(N^3) hazard when dealing with long strings of + or - characters; it seems hard to prevent this case from being O(N^2), but the additional N multiplier was not needed. Backpatch all the way since this has been there since 7.x, and it presents at least a mild hazard in that trying to do Bind, PREPARE or EXPLAIN on a hostile query could take excessive time (without honouring cancels or timeouts) even if the query was never executed.
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_wrap.cpp')
0 files changed, 0 insertions, 0 deletions