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?.
item_id | name | item_group |
---|---|---|
1 | foo | 10 |
2 | bar | 10 |
SELECT 2
ERROR: column "item_id" is of type integer but expression is of type character varying LINE 2: select * from items where item_id=2; ^ HINT: You will need to rewrite or cast the expression.
INSERT 0 1
INSERT 0 1