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?.
7 rows affected
bucket | ct | lower_bound |
---|---|---|
1 | 5 | 2019-01-01 00:00:00 |
2 | 1 | 2019-01-01 12:00:00 |
bucket | ct | lower_bound |
---|---|---|
1 | 1 | 2019-01-01 00:00:00 |
3 | 4 | 2019-01-01 09:36:00 |
5 | 1 | 2019-01-01 19:12:00 |