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?.
6 rows affected
year | month | ct |
---|---|---|
2012 | 02 | 2 |
2012 | 09 | 1 |
2012 | 10 | 1 |
2012 | 12 | 1 |
2013 | 01 | 1 |
2013 | 02 | 1 |
year | month | ct |
---|---|---|
2012 | 02 | 2 |
2012 | 09 | 1 |
2012 | 10 | 1 |
2012 | 12 | 1 |
2013 | 01 | 1 |
2013 | 02 | 1 |