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?.
2 rows affected
5 rows affected
day_id | time_slot |
---|---|
1 | 08:00:00 |
1 | 08:30:00 |
1 | 09:00:00 |
1 | 09:30:00 |
1 | 09:45:00 |
1 | 10:15:00 |
1 | 10:45:00 |
1 | 11:30:00 |
1 | 12:00:00 |
1 | 12:30:00 |
1 | 13:00:00 |
1 | 13:30:00 |
1 | 14:00:00 |
1 | 14:30:00 |
1 | 15:00:00 |
1 | 15:15:00 |
1 | 15:45:00 |
1 | 16:15:00 |
1 | 16:45:00 |
1 | 17:15:00 |
1 | 17:45:00 |
2 | 10:30:00 |
2 | 11:00:00 |
2 | 11:30:00 |
2 | 12:00:00 |
2 | 14:45:00 |
2 | 15:15:00 |
2 | 15:45:00 |
2 | 16:15:00 |
2 | 16:45:00 |
2 | 17:15:00 |
2 | 17:45:00 |
2 | 19:30:00 |
2 | 20:00:00 |
2 | 20:30:00 |