- Notifications
You must be signed in to change notification settings - Fork5.3k
Commit5424f4d
committed
Don't call simplify_aggref with a NULL PlannerInfo
42473b3 added prosupport infrastructure to allow simplification ofAggrefs during constant-folding. In some cases the context->root that'sgiven to eval_const_expressions_mutator() can be NULL.42473b3 failedto take that into account, which could result in a crash.To fix, add a check and only call simplify_aggref() when the PlannerInfois set.Author: David Rowley <dgrowleyml@gmail.com>Reported-by: Birler, Altan <altan.birler@tum.de>Discussion:https://postgr.es/m/132d4da23b844d5ab9e352d34096eab5@tum.de1 parentc902bd5 commit5424f4d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2638 | 2638 | | |
2639 | 2639 | | |
2640 | 2640 | | |
2641 | | - | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
2642 | 2644 | | |
2643 | 2645 | | |
2644 | 2646 | | |
| |||
0 commit comments
Comments
(0)