forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb7f6bcb
committed
Repair bug in regexp split performance improvements.
Commitc8ea87e introduced a temporary conversion buffer forsubstrings extracted during regexp splits. Unfortunately the code thatsized it was failing to ignore the effects of ignored degenerateregexp matches, so for regexp_split_* calls it could under-size thebuffer in such cases.Fix, and add some regression test cases (though those will only catchthe bug if run in a multibyte encoding).Backpatch to 9.3 as the faulty code was.Thanks to the PostGIS project, Regina Obe and Paul Ramsey for thereport (via IRC) and assistance in analysis. Patch by me.1 parentba37349 commitb7f6bcb
File tree
3 files changed
+31
-6
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+31
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
982 | 982 |
| |
983 | 983 |
| |
984 | 984 |
| |
| 985 | + | |
985 | 986 |
| |
986 | 987 |
| |
987 | 988 |
| |
| |||
1024 | 1025 |
| |
1025 | 1026 |
| |
1026 | 1027 |
| |
| 1028 | + | |
1027 | 1029 |
| |
1028 | 1030 |
| |
1029 | 1031 |
| |
| |||
1076 | 1078 |
| |
1077 | 1079 |
| |
1078 | 1080 |
| |
1079 |
| - | |
1080 |
| - | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1081 | 1084 |
| |
1082 | 1085 |
| |
1083 | 1086 |
| |
1084 |
| - | |
1085 |
| - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1086 | 1090 |
| |
1087 | 1091 |
| |
1088 | 1092 |
| |
| |||
1108 | 1112 |
| |
1109 | 1113 |
| |
1110 | 1114 |
| |
1111 |
| - | |
1112 |
| - | |
| 1115 | + | |
| 1116 | + | |
1113 | 1117 |
| |
1114 | 1118 |
| |
1115 | 1119 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
674 | 674 |
| |
675 | 675 |
| |
676 | 676 |
| |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
677 | 695 |
| |
678 | 696 |
| |
679 | 697 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| 191 | + | |
| 192 | + | |
| 193 | + | |
191 | 194 |
| |
192 | 195 |
| |
193 | 196 |
| |
|
0 commit comments
Comments
(0)