summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAndrew Gierth2018-08-23 19:00:33 +0000
committerAndrew Gierth2018-08-23 20:34:42 +0000
commit4854ead60a293bb1ca235bd110c6a56c8aaaafd3 (patch)
tree75e40f62a12a6de83fdef78ba38ce00ddab61f85 /doc/src
parent90b0f30aea0ee456614ec97f518ffaf8ca6c3b05 (diff)
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 'doc/src')
0 files changed, 0 insertions, 0 deletions