On Thu, Sep 26, 2024 at 11:45 PM Alexandra Wang <[email protected]> wrote: > > Hi, > > I didn’t run pgindent earlier, so here’s the updated version with the > correct indentation. Hope this helps! >
the attached patch solves the domain type issue, Andrew mentioned in the thread.
I also added a test case: composite over jsonb domain type,
it still works. for example:
create domain json_d as jsonb;
create type test as (a int, b json_d);
create table t1(a test);
insert into t1 select $$(1,"{""a"": 3, ""key1"": {""c"": ""42""},
""key2"": [11, 12]}") $$;
insert into t1 select $$ (1,"{""a"": 3, ""key1"": {""c"": ""42""},
""key2"": [11, 12, {""x"": [31, 42]}]}") $$;
select (t1.a).b.key2[2].x[1] from t1;
select (t1.a).b.key1.c from t1;
v4-0001-make-simplified-accessor-works-with-domain-ove.no-cfbot
Description: Binary data
