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?.
11 rows affected
period | active |
---|---|
2020-W42 | 1 |
2020-W43 | 1 |
2020-W44 | 1 |
2020-W45 | 1 |
2020-W46 | 1 |
2020-W47 | 2 |
2020-W48 | 3 |
2020-W49 | 4 |
2020-W50 | 4 |
2020-W51 | 4 |
2020-W52 | 5 |
2020-W53 | 5 |
2021-W01 | 5 |