forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitad87bf3
committed
Avoid some other O(N^2) hazards in list manipulation.
In the same spirit as6301c3a, fix some more places where we wereusing list_delete_first() in a loop and thereby risking O(N^2)behavior. It's not clear that the lists manipulated in these spotscan get long enough to be really problematic ... but it's not clearthat they can't, either, and the fixes are simple enough.As before, back-patch to v13.Discussion:https://postgr.es/m/CD2F0E7F-9822-45EC-A411-AE56F14DEA9F@amazon.com1 parent494ec00 commitad87bf3
File tree
3 files changed
+27
-25
lines changed- contrib/pg_trgm
- src/backend
- executor
- jit/llvm
3 files changed
+27
-25
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
| 908 | + | |
908 | 909 |
| |
909 | 910 |
| |
910 | 911 |
| |
| |||
935 | 936 |
| |
936 | 937 |
| |
937 | 938 |
| |
| 939 | + | |
| 940 | + | |
| 941 | + | |
938 | 942 |
| |
939 |
| - | |
| 943 | + | |
940 | 944 |
| |
941 |
| - | |
942 |
| - | |
943 |
| - | |
| 945 | + | |
944 | 946 |
| |
945 | 947 |
| |
946 | 948 |
| |
| |||
964 | 966 |
| |
965 | 967 |
| |
966 | 968 |
| |
| 969 | + | |
| 970 | + | |
967 | 971 |
| |
968 | 972 |
| |
969 | 973 |
| |
970 | 974 |
| |
971 | 975 |
| |
972 |
| - | |
| 976 | + | |
973 | 977 |
| |
974 | 978 |
| |
975 |
| - | |
| 979 | + | |
976 | 980 |
| |
977 |
| - | |
| 981 | + | |
978 | 982 |
| |
979 |
| - | |
| 983 | + | |
| 984 | + | |
980 | 985 |
| |
981 | 986 |
| |
982 | 987 |
| |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
983 | 992 |
| |
984 | 993 |
| |
985 | 994 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2602 | 2602 |
| |
2603 | 2603 |
| |
2604 | 2604 |
| |
2605 |
| - | |
2606 |
| - | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
2607 | 2608 |
| |
2608 | 2609 |
| |
2609 | 2610 |
| |
| |||
3182 | 3183 |
| |
3183 | 3184 |
| |
3184 | 3185 |
| |
3185 |
| - | |
| 3186 | + | |
3186 | 3187 |
| |
3187 | 3188 |
| |
3188 | 3189 |
| |
| |||
3197 | 3198 |
| |
3198 | 3199 |
| |
3199 | 3200 |
| |
3200 |
| - | |
3201 |
| - | |
3202 | 3201 |
| |
3203 | 3202 |
| |
3204 | 3203 |
| |
| |||
3216 | 3215 |
| |
3217 | 3216 |
| |
3218 | 3217 |
| |
3219 |
| - | |
3220 |
| - | |
3221 |
| - | |
3222 |
| - | |
3223 |
| - | |
3224 |
| - | |
3225 |
| - | |
| 3218 | + | |
3226 | 3219 |
| |
3227 | 3220 |
| |
3228 | 3221 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
| 174 | + | |
174 | 175 |
| |
175 | 176 |
| |
176 | 177 |
| |
| |||
188 | 189 |
| |
189 | 190 |
| |
190 | 191 |
| |
191 |
| - | |
| 192 | + | |
192 | 193 |
| |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
| 194 | + | |
197 | 195 |
| |
198 | 196 |
| |
199 | 197 |
| |
| |||
221 | 219 |
| |
222 | 220 |
| |
223 | 221 |
| |
| 222 | + | |
| 223 | + | |
224 | 224 |
| |
225 | 225 |
| |
226 | 226 |
| |
|
0 commit comments
Comments
(0)