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?.
1 rows affected
random_field | foo_1 | foo_1_index | foo_2 | foo_2_index | bar_1 | bar_1_index | bar_2 | bar_2_index |
---|---|---|---|---|---|---|---|---|
{"bar": [[[1, 2, 3, 4]]], "foo": [[["abc", "def"], ["tuw", "xyz"]]]} | null | null | null | null | [[1, 2, 3, 4]] | 1 | [1, 2, 3, 4] | 1 |
{"bar": [[[1, 2, 3, 4]]], "foo": [[["abc", "def"], ["tuw", "xyz"]]]} | [["abc", "def"], ["tuw", "xyz"]] | 1 | ["abc", "def"] | 1 | null | null | null | null |
{"bar": [[[1, 2, 3, 4]]], "foo": [[["abc", "def"], ["tuw", "xyz"]]]} | [["abc", "def"], ["tuw", "xyz"]] | 1 | ["tuw", "xyz"] | 2 | null | null | null | null |