From 154634987e645efcc7ebbf4e291dc2cf6c4f441b Mon Sep 17 00:00:00 2001
From: PegoraroF10 <marcos@f10.com.br>
Date: Mon, 17 Aug 2026 08:58:16 -0300
Subject: [PATCH] Document that jsonpath operator == can be used as ANY

---
 doc/src/sgml/func/func-json.sgml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/src/sgml/func/func-json.sgml b/doc/src/sgml/func/func-json.sgml
index 0763ec81ed8..2b0aa795917 100644
--- a/doc/src/sgml/func/func-json.sgml
+++ b/doc/src/sgml/func/func-json.sgml
@@ -3012,6 +3012,10 @@ ERROR:  jsonpath member accessor can only be applied to an object
        <para>
         <literal>jsonb_path_query_array('[1, "a", 1, 3]', '$[*] ? (@ == "a")')</literal>
         <returnvalue>["a"]</returnvalue>
+       </para>
+       <para>
+        <literal>jsonb_path_query_array('["a","b","c"]', '$[*] ? (@ == $arr)','{"arr": ["c","b"]}')</literal>
+        <returnvalue>["b","c"]</returnvalue>
        </para></entry>
       </row>
 
-- 
2.51.2.windows.1

