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?.
3 rows affected
4 rows affected
10 rows affected
q_id | ss_q_id | ss_s_id |
---|---|---|
1 | 1 | 12345678 |
2 | 2 | 12345678 |
3 | 3 | 12345678 |
4 | 4 | 12345678 |
1 | 1 | 40204123 |
2 | 2 | 40204123 |
3 | 3 | 40204123 |
1 | 1 | 40213894 |
2 | 2 | 40213894 |
4 | 4 | 40213894 |
q_id | q_title | ss_s_id | ss_q_id | points | ss_ts | s_id | s_name |
---|---|---|---|---|---|---|---|
1 | Quiz 1 | 40204123 | 1 | 80 | 2021-01-12 15:37:11 | 40204123 | Student2_name |
2 | Quiz 2 | 40204123 | 2 | 75 | 2021-01-12 15:38:06 | 40204123 | Student2_name |
3 | Quiz 3 | 40204123 | 3 | 30 | 2021-01-13 22:13:13 | 40204123 | Student2_name |