- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit427c6b5
committed
Avoid assuming that statistics for a parent relation reflect the properties of
the union of its child relations as well. This might have been a good ideawhen it was originally coded, but it's a fatally bad idea when inheritance isbeing used for partitioning. It's better to have no stats at all thancompletely misleading stats. Per report from Mark Liberman.The bug arguably exists all the way back, but I've only patched HEAD and 8.1because we weren't particularly trying to support partitioning before 8.1.Eventually we ought to look at deriving union statistics instead of justpunting, but for now the drop kick looks good.1 parenta65a494 commit427c6b5
2 files changed
+21
-6
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
276 | 283 |
| |
277 | 284 |
| |
278 | 285 |
| |
|
Lines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
3265 | 3265 |
| |
3266 | 3266 |
| |
3267 | 3267 |
| |
3268 |
| - | |
| 3268 | + | |
3269 | 3269 |
| |
3270 | 3270 |
| |
3271 | 3271 |
| |
3272 | 3272 |
| |
3273 | 3273 |
| |
3274 | 3274 |
| |
3275 |
| - | |
| 3275 | + | |
3276 | 3276 |
| |
3277 |
| - | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
3278 | 3286 |
| |
3279 | 3287 |
| |
3280 |
| - | |
| 3288 | + | |
3281 | 3289 |
| |
3282 | 3290 |
| |
3283 | 3291 |
| |
|
0 commit comments
Comments
(0)