forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit159970b
committed
Clean up side-effects of commitsab5fcf2 et al.
Before those commits, partitioning-related code in the executor couldassume that ModifyTableState.resultRelInfo[] contains only leaf partitions.However, now a fully-pruned update results in a dummy ModifyTable thatreferences the root partitioned table, and that breaks some stuff.In v11, this led to an assertion or core dump in the tuple routing code.Fix by disabling tuple routing, since we don't need that anyway.(I chose to do that in HEAD as well for safety, even though the problemdoesn't manifest in HEAD as it stands.)In v10, this confused ExecInitModifyTable's decision about whether itneeded to close the root table. But we can get rid of that altogetherby being smarter about where to find the root table.Note that since the referenced commits haven't shipped yet, thisisn't fixing any bug the field has seen.Amit Langote, per a report from meDiscussion:https://postgr.es/m/20710.1554582479@sss.pgh.pa.us1 parent03f9e5c commit159970b
File tree
3 files changed
+14
-0
lines changed- src
- backend/optimizer/plan
- test/regress
- expected
- sql
3 files changed
+14
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1732 | 1732 |
| |
1733 | 1733 |
| |
1734 | 1734 |
| |
| 1735 | + | |
| 1736 | + | |
1735 | 1737 |
| |
1736 | 1738 |
| |
1737 | 1739 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
668 | 677 |
| |
669 | 678 |
| |
670 | 679 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
| 171 | + | |
| 172 | + | |
| 173 | + | |
171 | 174 |
| |
172 | 175 |
| |
173 | 176 |
| |
|
0 commit comments
Comments
(0)