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?.
CREATE TABLE
INSERT 0 19
race_id | car_type | seq_len |
---|---|---|
1 | red | 5 |
SELECT 1
race_id | car_type | seq_len |
---|---|---|
1 | red | 5 |
SELECT 1
race_id | car_type | seq_len |
---|---|---|
1 | red | 5 |
SELECT 1
seq_len |
---|
5 |
SELECT 1
car_type | race_id | wrong_seq_len |
---|---|---|
red | 1 | 12 |
SELECT 1