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 2
id | property_a | property_b | property_c | property_d |
---|---|---|---|---|
1 | ABC | 1 | Text text text | 2025-03-14T00:00:00.000Z |
1 | ABC | 2 | Text number two | 2026-05-02T00:00:00.000Z |
2 | DEF | 3 | More text | 2025-03-16T00:00:00.000Z |
2 | GHI | 4 | Another text | 2026-06-02T00:00:00.000Z |
SELECT 4