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 5
id | version |
---|---|
1 | 1.0.0 |
2 | 1.0.1 |
3 | 1.1.0 |
4 | 1.2.0 |
5 | 2.0.0 |
SELECT 5
table_catalog | table_schema | table_name | table_type | self_referencing_column_name | reference_generation | user_defined_type_catalog | user_defined_type_schema | user_defined_type_name | is_insertable_into | is_typed | commit_action |
---|---|---|---|---|---|---|---|---|---|---|---|
postgres | public | versions | BASE TABLE | null | null | null | null | null | YES | NO | null |
SELECT 1
version |
---|
1.0.0 |
SELECT 1