forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitad480bd
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 parent861aac5 commitad480bd
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3261 | 3261 |
| |
3262 | 3262 |
| |
3263 | 3263 |
| |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
3264 | 3273 |
| |
3265 | 3274 |
| |
3266 | 3275 |
| |
| |||
3282 | 3291 |
| |
3283 | 3292 |
| |
3284 | 3293 |
| |
3285 |
| - | |
3286 | 3294 |
| |
3287 | 3295 |
| |
3288 | 3296 |
| |
|
0 commit comments
Comments
(0)