forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9354f5b
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 parentb7cd5c8 commit9354f5b
1 file changed
+32
-1
lines changedLines changed: 32 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
722 | 722 |
| |
723 | 723 |
| |
724 | 724 |
| |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
725 | 742 |
| |
726 | 743 |
| |
727 | 744 |
| |
| |||
912 | 929 |
| |
913 | 930 |
| |
914 | 931 |
| |
915 |
| - | |
| 932 | + | |
916 | 933 |
| |
917 | 934 |
| |
918 | 935 |
| |
| |||
959 | 976 |
| |
960 | 977 |
| |
961 | 978 |
| |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
962 | 993 |
| |
963 | 994 |
| |
964 | 995 |
| |
|
0 commit comments
Comments
(0)