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 6
voter | election_year | election_type | party |
---|---|---|---|
2435871347 | 2018 | PO | EV |
2435871347 | 2018 | RU | EV |
2435871347 | 2018 | GE | EV |
2435871347 | 2016 | PO | EV |
2435871347 | 2016 | GE | EV |
10215121/8 | 2016 | GE | ED |
SELECT 6
DELETE 3
voter | election_year | election_type | party |
---|---|---|---|
2435871347 | 2018 | PO | EV |
2435871347 | 2016 | PO | EV |
10215121/8 | 2016 | GE | ED |
SELECT 3