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?.
holiday |
---|
2019-03-30 |
2019-04-10 |
start | stop | generate_series |
---|---|---|
2019-03-28 | 2019-04-14 | 2019-03-28 00:00:00+00 |
2019-03-28 | 2019-04-14 | 2019-03-29 00:00:00+00 |
2019-03-28 | 2019-04-14 | 2019-03-30 00:00:00+00 |
2019-03-28 | 2019-04-14 | 2019-03-31 00:00:00+00 |
2019-03-28 | 2019-04-14 | 2019-04-01 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-02 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-03 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-04 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-05 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-06 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-07 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-08 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-09 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-10 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-11 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-12 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-13 00:00:00+01 |
2019-03-28 | 2019-04-14 | 2019-04-14 00:00:00+01 |
gs |
---|
2019-03-28 00:00:00+00 |
2019-03-29 00:00:00+00 |
2019-03-31 00:00:00+00 |
2019-04-01 00:00:00+01 |
2019-04-02 00:00:00+01 |
2019-04-03 00:00:00+01 |
2019-04-04 00:00:00+01 |
2019-04-05 00:00:00+01 |
2019-04-06 00:00:00+01 |
2019-04-07 00:00:00+01 |
2019-04-08 00:00:00+01 |
2019-04-09 00:00:00+01 |
2019-04-11 00:00:00+01 |
2019-04-12 00:00:00+01 |
2019-04-13 00:00:00+01 |
2019-04-14 00:00:00+01 |
gs |
---|
2019-03-28 |
2019-03-29 |
2019-04-01 |
2019-04-02 |
2019-04-03 |
2019-04-04 |
2019-04-05 |
2019-04-08 |
2019-04-09 |
2019-04-11 |
2019-04-12 |
date_trunc | count |
---|---|
2019-04-01 00:00:00+01 | 9 |
2019-03-01 00:00:00+00 | 2 |