From: | jian he <jian(dot)universality(at)gmail(dot)com> |
---|---|
To: | Alexandra Wang <alexandra(dot)wang(dot)oss(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Andrew Dunstan <andrew(dot)dunstan(at)enterprisedb(dot)com> |
Subject: | Re: SQL:2023 JSON simplified accessor support |
Date: | 2024-10-04 12:33:07 |
Message-ID: | CACJufxGKTN=bc73-Zhezz+7Gfy_sH8PyoVpd2Jf9wHgJ6ymmqw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Sep 26, 2024 at 11:45 PM Alexandra Wang
<alexandra(dot)wang(dot)oss(at)gmail(dot)com> 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;
Attachment | Content-Type | Size |
---|---|---|
v4-0001-make-simplified-accessor-works-with-domain-ove.no-cfbot | application/octet-stream | 7.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2024-10-04 13:08:15 | Re: not null constraints, again |
Previous Message | Robert Haas | 2024-10-04 12:31:02 | Re: POC, WIP: OR-clause support for indexes |