forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit99c5852
committed
Add missing NULL check when building Result Cache paths
Code added in9e21537 to disable building of Result Cache paths whennot all join conditions are part of the parameterization of a uniquejoin failed to first check if the inner path's param_info was set beforechecking the param_info's ppi_clauses.Add a check for NULL values here and just bail on trying to build thepath if param_info is NULL. lateral_vars are not considered whendeciding if the join is unique, so we're not missing out on doing theoptimization when there are lateral_vars and no param_info.Reported-by: Coverity, via Tom LaneDiscussion:https://postgr.es/m/457998.1621779290@sss.pgh.pa.us1 parentf5024d8 commit99c5852
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
530 | 530 |
| |
531 | 531 |
| |
532 | 532 |
| |
533 |
| - | |
534 |
| - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
535 | 536 |
| |
536 | 537 |
| |
537 | 538 |
| |
|
0 commit comments
Comments
(0)