forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0044f45
committed
Ignore extra subquery outputs in set_subquery_size_estimates().
In commit0f61d4d, I added code to copy upcolumn width estimates for each column of a subquery. That code supposedthat the subquery couldn't have any output columns that didn't correspondto known columns of the current query level --- which is true when a queryis parsed from scratch, but the assumption fails when planning a view thatdepends on another view that's been redefined (adding output columns) sincethe upper view was made. This results in an assertion failure or even acrash, as per bug #8025 from lindebg. Remove the Assert and instead skipthe column if its resno is out of the expected range.1 parent4d001c3 commit0044f45
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3700 | 3700 |
| |
3701 | 3701 |
| |
3702 | 3702 |
| |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
3703 | 3712 |
| |
3704 | 3713 |
| |
3705 | 3714 |
| |
| |||
3721 | 3730 |
| |
3722 | 3731 |
| |
3723 | 3732 |
| |
3724 |
| - | |
3725 | 3733 |
| |
3726 | 3734 |
| |
3727 | 3735 |
| |
|
0 commit comments
Comments
(0)