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
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
car_name | start_of_last_week | today_but_last_week | start_of_current_week | today | car_count_last_week | car_count_current_week | difference_between_weeks |
---|---|---|---|---|---|---|---|
awesome | 2021-05-03 00:00:00 | 2021-05-09 00:00:00 | 2021-05-10 00:00:00+01 | 2021-05-15 | 1 | 4 | 40000 |