forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit77ce50a
committed
Fix psql lexer to avoid use of backtracking.
Per previous experimentation, backtracking slows down lexing performancesignificantly (by about a third). It's usually pretty easy to avoid, justneed to have rules that accept an incomplete construct and do whatever thelexer would have done otherwise.The backtracking was introduced by the patch that added quoted variablesubstitution. Back-patch to 9.0 where that was added.1 parent2e95f1f commit77ce50a
1 file changed
+32
-1
lines changedLines changed: 32 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
723 | 723 |
| |
724 | 724 |
| |
725 | 725 |
| |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
726 | 743 |
| |
727 | 744 |
| |
728 | 745 |
| |
| |||
913 | 930 |
| |
914 | 931 |
| |
915 | 932 |
| |
916 |
| - | |
| 933 | + | |
917 | 934 |
| |
918 | 935 |
| |
919 | 936 |
| |
| |||
960 | 977 |
| |
961 | 978 |
| |
962 | 979 |
| |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
963 | 994 |
| |
964 | 995 |
| |
965 | 996 |
| |
|
0 commit comments
Comments
(0)