Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iPb1v-00074f-56 for pgsql-docs@arkaria.postgresql.org; Tue, 29 Oct 2019 23:36:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iPb1t-0003j4-TU for pgsql-docs@arkaria.postgresql.org; Tue, 29 Oct 2019 23:36:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iPb1t-0003it-IM for pgsql-docs@lists.postgresql.org; Tue, 29 Oct 2019 23:36:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iPb1q-0002AW-Um for pgsql-docs@lists.postgresql.org; Tue, 29 Oct 2019 23:36:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9TNZt8p013001; Tue, 29 Oct 2019 19:35:55 -0400 From: Tom Lane To: kowarschick@gmail.com cc: pgsql-docs@lists.postgresql.org Subject: Re: JSON: @@-operator In-reply-to: <157236654810.1042.9358599433792740462@wrigleys.postgresql.org> References: <157236654810.1042.9358599433792740462@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Tue, 29 Oct 2019 16:29:08 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12999.1572392155.1@sss.pgh.pa.us> Date: Tue, 29 Oct 2019 19:35:55 -0400 Message-ID: <13000.1572392155@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Doc comments form writes: > The following documentation comment has been logged on the website: > Page: https://www.postgresql.org/docs/12/functions-json.html > Description: > '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2' does not work; > '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'::jsonpath works as expected They both work for me: regression=# select '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'; ?column? ---------- t (1 row) regression=# select '{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'::jsonpath; ?column? ---------- t (1 row) The most likely explanation is that you have some non-built-in "jsonb @@ something" operator in your installation. But you did not say what "does not work" means, so I'm just guessing. regards, tom lane