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?.
3 rows affected
id | created | summarised |
---|---|---|
1 | 2020-01-01 | 0 |
2 | 2020-01-15 | 0 |
3 | 2020-02-15 | 0 |
summarise |
---|
1 |
2 |
3 |
id | created | summarised |
---|---|---|
1 | 2020-01-01 | 1 |
2 | 2020-01-15 | 1 |
3 | 2020-02-15 | 1 |
year | month | num_id |
---|---|---|
2020 | 1 | 2 |
2020 | 2 | 1 |