forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit92f8718
committed
Guard against core dump from uninitialized subplan.
If the planner erroneously puts a non-parallel-safe SubPlan intoa parallelized portion of the query tree, nodeSubplan.c will failin the worker processes because it finds a null in es_subplanstates,which it's unable to cope with. It seems worth a test-and-elog tomake that an error case rather than a core dump case.This probably should have been included in commit16ebab6, whichwas responsible for allowing nulls to appear in es_subplanstatesto begin with. So, back-patch to v10 where that came in.Discussion:https://postgr.es/m/924226.1604422326@sss.pgh.pa.us1 parent17fb603 commit92f8718
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
800 |
| - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
801 | 809 |
| |
802 | 810 |
| |
803 | 811 |
| |
|
0 commit comments
Comments
(0)