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?.
1 rows affected
4 rows affected
ddate | ddays |
---|---|
2018-03-01 13:02:20.904 | 147 days |
2018-07-26 13:02:20.904 | 147 days |
2018-12-20 13:02:20.904 | 147 days |
2019-05-16 13:02:20.904 | 147 days |
2019-10-10 13:02:20.904 | 147 days |
2020-03-05 13:02:20.904 | 147 days |
2020-07-30 13:02:20.904 | 147 days |
2020-12-24 13:02:20.904 | 147 days |
2021-05-20 13:02:20.904 | 147 days |
2021-10-14 13:02:20.904 | 147 days |
ddate | friends |
---|---|
2018-03-01 13:02:20.904 | 4 |
2018-07-26 13:02:20.904 | 0 |
2018-12-20 13:02:20.904 | 0 |
2019-05-16 13:02:20.904 | 0 |
2019-10-10 13:02:20.904 | 0 |
2020-03-05 13:02:20.904 | 0 |
2020-07-30 13:02:20.904 | 0 |
2020-12-24 13:02:20.904 | 0 |
2021-05-20 13:02:20.904 | 0 |
2021-10-14 13:02:20.904 | 0 |
ddate | friends |
---|---|
2018-03-01 13:02:20.904 | 4 |
2018-07-26 13:02:20.904 | 0 |
2018-12-20 13:02:20.904 | 0 |
2019-05-16 13:02:20.904 | 0 |
2019-10-10 13:02:20.904 | 0 |
2020-03-05 13:02:20.904 | 0 |
2020-07-30 13:02:20.904 | 0 |
2020-12-24 13:02:20.904 | 0 |
2021-05-20 13:02:20.904 | 0 |
2021-10-14 13:02:20.904 | 0 |
ddate | friends | friends_total |
---|---|---|
2018-03-01 13:02:20.904 | 4 | 4 |
2018-07-26 13:02:20.904 | 0 | 4 |
2018-12-20 13:02:20.904 | 0 | 4 |
2019-05-16 13:02:20.904 | 0 | 4 |
2019-10-10 13:02:20.904 | 0 | 4 |
2020-03-05 13:02:20.904 | 0 | 4 |
2020-07-30 13:02:20.904 | 0 | 4 |
2020-12-24 13:02:20.904 | 0 | 4 |
2021-05-20 13:02:20.904 | 0 | 4 |
2021-10-14 13:02:20.904 | 0 | 4 |