Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pizYc-0007Ai-E0 for pgsql-general@arkaria.postgresql.org; Sun, 02 Apr 2023 15:23:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pizYZ-00037t-HS for pgsql-general@arkaria.postgresql.org; Sun, 02 Apr 2023 15:23:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pizYZ-00037h-6g for pgsql-general@lists.postgresql.org; Sun, 02 Apr 2023 15:23:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pizYR-000SzC-TS for pgsql-general@lists.postgresql.org; Sun, 02 Apr 2023 15:23:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 332FNWXh974450; Sun, 2 Apr 2023 11:23:33 -0400 From: Tom Lane To: Erik Wienhold cc: jian he , pgsql-general list Subject: =?UTF-8?Q?Re:_=E2=80=8Bjsonb_@@_jsonpath_operator_doc:_=E2=80=8BO?= =?UTF-8?Q?nly_the_first_item_of_the_result_is_taken_into_account?= In-reply-to: <202761461.525027.1680441711777@office.mailbox.org> References: <202761461.525027.1680441711777@office.mailbox.org> Comments: In-reply-to Erik Wienhold message dated "Sun, 02 Apr 2023 15:21:51 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <974448.1680449012.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 02 Apr 2023 11:23:32 -0400 Message-ID: <974449.1680449012@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Erik Wienhold writes: > The result is true if any array element matches the predicate because pr= edicates > are evaluated on sequences. The documentation for executePredicate in > src/backend/utils/adt/jsonpath_exec.c explains it: I think the OP is correct that this is undocumented at the user level. Want to propose some doc text? regards, tom lane