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?.
16 rows affected
tumour_count | illness |
---|---|
1 | Cervix |
1 | Lung |
month | tumour_count | illness |
---|---|---|
2017-01 | 1 | Cervix |
2017-01 | 1 | Lung |
2017-02 | 3 | Lung |
2018-01 | 5 | Cervix |
2018-02 | 3 | Lung |
month | tumour_count | string_agg |
---|---|---|
2017-01 | 1 | Cervix | Lung |
2017-02 | 3 | Lung |
2018-01 | 5 | Cervix |
2018-02 | 3 | Lung |