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?.
12 rows affected
um_no | nums | hour | day |
---|---|---|---|
mary | 3 | 8 | 1 |
john | 6 | 8 | 1 |
peter | 2 | 8 | 1 |
jason | 1 | 8 | 1 |
mary | 5 | 9 | 1 |
john | 6 | 9 | 1 |
peter | 6 | 9 | 1 |
jason | 1 | 9 | 1 |
mary | 5 | 10 | 1 |
john | 4 | 10 | 1 |
peter | 2 | 10 | 1 |
jason | 4 | 10 | 1 |
day | hour | nums0_5 | nums5_10 | nums10_15 | nums15up |
---|---|---|---|---|---|
1 | 8 | 3 | 1 | 0 | 0 |
1 | 9 | 1 | 2 | 1 | 0 |
1 | 10 | 0 | 2 | 2 | 1 |