postgresql/src/fe_utils
Andrew Gierth 2dbfbd630b 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.
2018-08-23 21:43:55 +01:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
Makefile Suppress "unused variable" warnings with older versions of flex. 2017-02-19 13:04:30 -05:00
mbprint.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
print.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
psqlscan.l Reduce an unnecessary O(N^3) loop in lexer. 2018-08-23 21:43:55 +01:00
simple_list.c Initial pgindent run with pg_bsd_indent version 2.0. 2017-06-21 14:39:04 -04:00
string_utils.c Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:47 -08:00