- Notifications
You must be signed in to change notification settings - Fork5
Commit014be15
committed
Fix set_rel_width() to do something reasonable with non-Var items in a
RelOptInfo targetlist. It used to be that the only possibility other thana Var was a RowExpr representing a whole-row child Var, but as of 8.4'sexpanded ability to flatten appendrel members, we can get arbitrary expressionsin there. Use the expression's type info and get_typavgwidth() to producean at-least-marginally-sane result. Note that get_typavgwidth()'s fallbackestimate (32 bytes) is the same as what was here before, so there will beno behavioral change for RowExprs. Noted while looking at recent gripeabout constant quals pushed down to FunctionScan appendrel members ...not only were we failing to recognize the constant qual, we were gettingthe width estimate wrong :-(1 parente7370ba commit014be15
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| |||
2997 | 2997 |
| |
2998 | 2998 |
| |
2999 | 2999 |
| |
3000 |
| - | |
3001 |
| - | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
3002 | 3010 |
| |
3003 | 3011 |
| |
3004 | 3012 |
| |
|
0 commit comments
Comments
(0)