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 13
county | candidate | votes |
---|---|---|
Abbeville | Hillary Clinton | 1501 |
Abbot | Bernie Sanders | 1 |
Abington | Bernie Sanders | 1352 |
SELECT 3
county | candidate | votes |
---|---|---|
Abbeville | Hillary Clinton | 1501 |
Abbot | Bernie Sanders | 1 |
Abington | Bernie Sanders | 1352 |
SELECT 3