I am trying to create the next table structure:
create type my_type1 as (val_s text);
create type my_type2 as (val_s text, val_t my_type1[]);
create table my_table(val_t my_type2[]);
And I want to write an insert query like this:
insert into my_table (val_t) values ('{ "text", ''{"text1","text2"}'' }');
Please, help. I am using PostgreSQL 12
insert into my_table (val_t) values ('{ "text", ''{"text1","text2"}'' }');
insert statement is repeated. It irritates me this way.