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 5
id | foo |
---|---|
1 | alpha |
2 | beta |
3 | gamma |
4 | delta |
5 | epsilon |
SELECT 5
UPDATE 2
id | foo |
---|---|
1 | alpha |
3 | gamma |
5 | epsilon |
2 | hello |
4 | world |
SELECT 5