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
col1 | col2 | col3 | col4 |
---|---|---|---|
A | B | 11 | 22 |
dfdf | dfe | 14 | 545 |
INSERT 0 2
CREATE TYPE
CREATE TYPE
CREATE FUNCTION
col1 | col2 |
---|---|
A | B |
dfdf | dfe |
SELECT 2
col3 | col4 |
---|---|
11 | 22 |
14 | 545 |
SELECT 2