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 3
CREATE TABLE
INSERT 0 3
CREATE TABLE
INSERT 0 3
unique_id | name | unique_id | name | created_on |
---|---|---|---|---|
1 | Prod A | 1 | Prod A, Attach 1 | 2016-06-25 |
3 | Prod C | 3 | Prod C, Attach 2 | 2019-07-15 |
SELECT 2