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?.
INSERT 0 2
id | name | array_agg |
---|---|---|
1 | xyz | {{tag_name_4,tag_description_4},{tag_name_5,tag_description_5}} |
SELECT 1
id | name | array_agg |
---|---|---|
1 | xyz | {"tag_name_4, tag_description_4","tag_name_5, tag_description_5"} |
SELECT 1
id | name | string_agg |
---|---|---|
1 | xyz | tag_name_4, tag_description_4; tag_name_5, tag_description_5 |
SELECT 1
id | name | jsonb_object_agg |
---|---|---|
1 | xyz | {"tag_name_4": "tag_description_4", "tag_name_5": "tag_description_5"} |
SELECT 1