forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfc4089f
committed
Fix possible crash in add_paths_to_append_rel()
While working ona8a968a, I failed to consider thatcheapest_startup_path can be NULL when there is no non-parameterizedpath in the pathlist. This is well documented in set_cheapest(), I justfailed to notice.Here we adjust the code to just check if the RelOptInfo has acheapest_startup_path set before adding it to the startup_subpaths list.Reported-by: Richard GuoAuthor: Richard GuoDiscussion:https://postgr.es/m/CAMbWs49w3t03V69XhdCuw+GDwivny4uQUxrkVp6Gejaspt0wMQ@mail.gmail.com1 parent4f3b56e commitfc4089f
File tree
3 files changed
+31
-5
lines changed- src
- backend/optimizer/path
- test/regress
- expected
- sql
3 files changed
+31
-5
lines changedLines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1350 | 1350 |
| |
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 |
| - | |
1354 |
| - | |
| 1353 | + | |
| 1354 | + | |
1355 | 1355 |
| |
1356 |
| - | |
1357 |
| - | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1358 | 1360 |
| |
1359 | 1361 |
| |
1360 | 1362 |
| |
| 1363 | + | |
1361 | 1364 |
| |
1362 | 1365 |
| |
1363 | 1366 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1453 | 1453 |
| |
1454 | 1454 |
| |
1455 | 1455 |
| |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + |
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
550 | 550 |
| |
551 | 551 |
| |
552 | 552 |
| |
553 |
| - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + |
0 commit comments
Comments
(0)