By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
8 rows affected
date | pageviews | weighted_moving_average |
---|---|---|
2020-02-01 | 42 | null |
2020-02-02 | 3 | null |
2020-02-03 | 216 | 71.99999999999999999928 |
2020-02-04 | 186 | 61.99999999999999999938 |
2020-02-05 | 510 | 169.99999999999999999830 |
2020-02-06 | 419 | 139.66666666666666666527 |
2020-02-07 | 64 | 21.33333333333333333312 |
2020-02-09 | 230 | 76.66666666666666666590 |