Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1utH0S-003uwz-6t for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Sep 2025 02:44:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1utH0P-001cug-7B for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Sep 2025 02:44:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1utH0O-001cuX-LO for pgsql-hackers@lists.postgresql.org; Tue, 02 Sep 2025 02:44:21 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1utH0M-0005dT-22 for pgsql-hackers@postgresql.org; Tue, 02 Sep 2025 02:44:19 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-24884d9e54bso48475725ad.0 for ; Mon, 01 Sep 2025 19:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756781057; x=1757385857; darn=postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=WH/U242Nal0wZ1PW+LVrUbxfctJgQTqNVLKdml66biw=; b=Wb35zCAdvipqe+q5cvCkTybtz2DoZu38oZIA2h6M1AC9QJLOYAsBVER0y9u6oJr1gj 2Yh9hqHi2F0IZUGf/2qrb1U8jzAUigEfl/BJ6uSKPT17/YrGunePFJLz152Ksw1XTMzh n94rK7PSueGYgtqADJbfjYyG95V8EUs627SN4+L6x11c4b1H8rkVYC4Q4cF0/fJiq1a6 20DdXNvbXeNO74nI6aP/DxGx/+0CMzOK1JChLfuE2d5ZS/kP37dF48SgoaYkNIcVlr5g E7tHsHLdEi6izztowU72KeqitCVLbeLExgxFPO1FCSjKFyOjGBXjq0XvMi7qSi0WuvuA kiAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756781057; x=1757385857; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WH/U242Nal0wZ1PW+LVrUbxfctJgQTqNVLKdml66biw=; b=o8nVTRc21YGJgBzysrlSio897/aR4CdV9C4lBlbnPbstW/7IVhIwva/m7ZzakPVcOD la53v/lnNOYGCw7EM3N8DSdWNAOKkmiO0Use8aEm6dpgbvdA9UoF0OmE4qbo+1I/7NMm Q+L3s27U2ejkwyuZMaxCm02HKqy8tcM64/hc71yx7wj1IF9qY+3aeKCFITxRzm3hdPdV uJr36+FASEK5r3jkbAVuwFNF0xvd3coAfjFnT3sy9OkF7ebUTOG7TXZyFIjvGxB7hB2x Q3YeNVa3PENg+MMYJGik2dglx6Ug8StG3LE6tKvyVApJ3OCcde3SK+fzMdL5SBMmck05 aZLw== X-Forwarded-Encrypted: i=1; AJvYcCXj+Tw+SpFfCQrzm/OpTLxgj3qTvGXu9X9Q2UKBrYhAgmwbHLIfRx4ab2IEwvOy7LFU7jZPP6h3kzb0ijq/@postgresql.org X-Gm-Message-State: AOJu0Yx5dNRFvROulDtXrnUc4OAAMYD9ynyPmkirTOSo3M9o9NkIAp9P +vJmqzvW1aDEUyHbpa0FXL7wJ98xZBNVbTMSb7VlmbHQTscHj3H48niu X-Gm-Gg: ASbGnctdwnIYhZII/M6nH6qp7a3sUArBQ1zy1K8mE9k3/1qn/5SPYCGZDk2zaRe8wbo /zC25bjN8bbjXdL0A0Y8jJzxoZE4zw/hOyMw82rZUVCwILCho3GV28efi76RlCu4hOhPNomsLuC 7OmHxWcnSCm3j1nIGDkOegmXv89Qq2PbdPib673RzQLbsodcQgYgtKuq7hehGRwVIMlKKbSqMxk TFem35dtkHeggjsvrrWFYSnLWyzvPk/NtRVAsnB1KBB6i9Z7gEpznK6CbznL5CcWKdNfkfcyZlM hgqspIP4mjiGIX0N+FEfVfgtzgYzE7mmyPDTXyc7XeWfgFPOKPHi6MjeAlU2WL5QQKs0RBRQHAq 3E7IYaJSXQ+4lGREVrL+It4rjlylihrN/MZfhcE/ZbXM= X-Google-Smtp-Source: AGHT+IGeZWhpL9Ey+hn7F6b3DfMDIvY3ZXBXD2imlpjd7O4EG36jbo1XJ4Q8jjKmzlhiYu5Uq/a0SQ== X-Received: by 2002:a17:902:ecc6:b0:248:b25d:ff2d with SMTP id d9443c01a7336-24944aed41cmr104780345ad.51.1756781056965; Mon, 01 Sep 2025 19:44:16 -0700 (PDT) Received: from smtpclient.apple ([142.171.105.12]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-249065a5370sm116902995ad.121.2025.09.01.19.44.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Sep 2025 19:44:16 -0700 (PDT) From: Chao Li Message-Id: <63313C0A-D85A-4A84-B45A-93DED050929F@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_7E6A19BC-97EF-49AD-9CD7-5ADB14D70B0E" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: SQL:2023 JSON simplified accessor support Date: Tue, 2 Sep 2025 10:43:58 +0800 In-Reply-To: Cc: jian he , Nikita Malakhov , Vik Fearing , Mark Dilger , Matheus Alcantara , Peter Eisentraut , Andrew Dunstan , Nikita Glukhov , PostgreSQL Hackers , "David E. Wheeler" To: Alexandra Wang References: <21fa36b4-6d56-4556-b524-9e3955b922c8@eisentraut.org> <263CAF0D-7776-4349-93CA-CC1AB15384CA@gmail.com> X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_7E6A19BC-97EF-49AD-9CD7-5ADB14D70B0E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Alex, Thank you so much for such a detailed explanation. > On Aug 30, 2025, at 08:53, Alexandra Wang = wrote: >=20 >=20 >=20 > I hope this long explanation helps! >=20 > [1] = https://www.postgresql.org/docs/current/functions-json.html#SQLJSON-QUERY-= FUNCTIONS >=20 >=20 I used to only use the =E2=80=9C->=E2=80=9D and =E2=80=9C->>=E2=80=9D = accessors for jsonb statements. After some research, I think my = misunderstanding was about the slice operator [x:y]. I thought it could = return a new array, however it actually returns a sequence. I revisited the patch diffs again, and got a few other comments. Let me = raise them in a separate email. Regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/ --Apple-Mail=_7E6A19BC-97EF-49AD-9CD7-5ADB14D70B0E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Alex,

Thank you so much for such a detailed = explanation.

On Aug 30, 2025, at 08:53, Alexandra Wang = <alexandra.wang.oss@gmail.com> wrote:


I used to only use the = =E2=80=9C->=E2=80=9D and =E2=80=9C->>=E2=80=9D accessors for = jsonb statements. After some research, I think my misunderstanding was = about the slice operator [x:y]. I thought it could return a new array, = however it actually returns a sequence.

I = revisited the patch diffs again, and got a few other comments. Let me = raise them in a separate email.

Regards,
--
Chao Li (Evan)
HighGo Software = Co., Ltd.
https://www.highgo.com/




= --Apple-Mail=_7E6A19BC-97EF-49AD-9CD7-5ADB14D70B0E--