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
table_name | column_name | is_nullable | column_default | character_maximum_length | collation_name |
---|---|---|---|---|---|
t | a | NO | 'abc'::character varying | 10 | C.utf8 |
SELECT 1
ALTER TABLE
table_name | column_name | is_nullable | column_default | character_maximum_length | collation_name |
---|---|---|---|---|---|
t | a | NO | 'abc'::character varying | 20 | null |
SELECT 1