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 FUNCTION
CREATE TABLE
INSERT 0 2
id | js | my_int | my_text | my_date | my_point | my_default |
---|---|---|---|---|---|---|
1 | {"int": 66, "date": "2019-12-12", "text": "abc", "integer": "42"} | 42 | abc | 2019-12-12 | null | abc |
2 | {"point": "(1,2)"} | null | null | null | (1,2) | null |
SELECT 2