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
foo | bar | baz |
---|---|---|
1 | 2 | blah blah blah blah blah blah |
3 | 4 | blah blah |
SELECT 2
CREATE FUNCTION
foo | bar | baz |
---|---|---|
1 | 2 | null |
3 | 4 | null |
SELECT 2