forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6589a43
committed
Fix executor prune failure when plan already pruned
In a multi-layer partitioning setup, if at plan time all thesub-partitions are pruned but the intermediate one remains, the executorlater throws a spurious error that there's nothing to prune. That iscorrect, but there's no reason to throw an error. Therefore, don't.Reported-by: Andreas Seltenreich <seltenreich@gmx.de>Author: David Rowley <david.rowley@2ndquadrant.com>Discussion:https://postgr.es/m/87in4h98i0.fsf@ansel.ydns.eu1 parent43ba5ac commit6589a43
File tree
3 files changed
+37
-2
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+37
-2
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1887 | 1887 |
| |
1888 | 1888 |
| |
1889 | 1889 |
| |
1890 |
| - | |
1891 |
| - | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1892 | 1897 |
| |
1893 | 1898 |
| |
1894 | 1899 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3400 | 3400 |
| |
3401 | 3401 |
| |
3402 | 3402 |
| |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + |
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
888 | 888 |
| |
889 | 889 |
| |
890 | 890 |
| |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + |
0 commit comments
Comments
(0)