{"Entry":{"collection":"func","key":"jsonb-path-query","name":"jsonb_path_query","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"11","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"12"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"17"}],"content_hash":"e77a9b2e9fff149f1878915b91af52be4a41bce2d75151b3c0aa443b8d1f40a1","first_version":"12","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.807559+08:00","last_version":"20","name":"jsonb_path_query","name_key":"jsonb_path_query","position":16042,"present_in":["12","13","14","15","16","17","18","19","20"],"signature":"jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb","signature_count":1,"slug":"jsonb-path-query","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Returns all JSON items returned by the JSON path for the specified JSON value.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-path-query","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-path-query","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Returns all JSON items returned by the JSON path for the specified JSON value. For SQL-standard JSON path expressions it returns the JSON values selected from target. For predicate check expressions it returns the result of the predicate check: true, false, or null. The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns all JSON items returned by the JSON path for the specified JSON value. For SQL-standard JSON path expressions it returns the JSON values selected from \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e. For \u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. Boolean Predicate Check Expressions\"\u003epredicate check expressions\u003c/a\u003e it returns the result of the predicate check: \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e, or \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. The optional \u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e arguments act the same as for \u003ccode class=\"function\"\u003ejsonb_path_exists\u003c/code\u003e.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"},"group":"json","group_label":"Json Functions And Operators","lang":"en","layout":"table-new","pages":["functions-json.html"],"prose_only":false,"signatures":[{"description":"Returns all JSON items returned by the JSON path for the specified JSON value. For SQL-standard JSON path expressions it returns the JSON values selected from target. For predicate check expressions it returns the result of the predicate check: true, false, or null. The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns all JSON items returned by the JSON path for the specified JSON value. For SQL-standard JSON path expressions it returns the JSON values selected from \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e. For \u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. Boolean Predicate Check Expressions\"\u003epredicate check expressions\u003c/a\u003e it returns the result of the predicate check: \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e, or \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. The optional \u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e arguments act the same as for \u003ccode class=\"function\"\u003ejsonb_path_exists\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"select * from jsonb_path_query('{\"a\":[1,2,3,4,5]}', '$.a[*] ? (@ \u003e= $min \u0026\u0026 @ \u003c= $max)', '{\"min\":2, \"max\":4}')","result":" jsonb_path_query\n------------------\n 2\n 3\n 4"}],"html":"\u003ccode class=\"function\"\u003ejsonb_path_query\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epath\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonpath\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e ]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003esetof jsonb\u003c/code\u003e","returns":"setof jsonb","text":"jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-path-query","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"jsonb_path_query","Summary":"为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从target中选出的 JSON 值。对于谓词检查表达式，它返回谓词检查的结果：true、false或null。可选的vars和silent参数的作用与jsonb_path_exists相同。","BodyHTML":"为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从\u003cem\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e中选出的 JSON 值。对于\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" rel=\"nofollow\"\u003e谓词检查表达式\u003c/a\u003e，它返回谓词检查的结果：\u003ccode\u003etrue\u003c/code\u003e、\u003ccode\u003efalse\u003c/code\u003e或\u003ccode\u003enull\u003c/code\u003e。可选的\u003cem\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e和\u003cem\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e参数的作用与\u003ccode\u003ejsonb_path_exists\u003c/code\u003e相同。\u003cpre\u003ejsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb\u003c/pre\u003e为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从\u003cem\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e中选出的 JSON 值。对于\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" rel=\"nofollow\"\u003e谓词检查表达式\u003c/a\u003e，它返回谓词检查的结果：\u003ccode\u003etrue\u003c/code\u003e、\u003ccode\u003efalse\u003c/code\u003e或\u003ccode\u003enull\u003c/code\u003e。可选的\u003cem\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e和\u003cem\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e参数的作用与\u003ccode\u003ejsonb_path_exists\u003c/code\u003e相同。","SourceRevision":"1b5ca64c","ContentHash":"c5c3a0b788bc26591fc9d7ba41829bdf12b3e21416ea5dfbe4d066ea2ce6bda2","Payload":{"description_zh":"为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从target中选出的 JSON 值。对于谓词检查表达式，它返回谓词检查的结果：true、false或null。可选的vars和silent参数的作用与jsonb_path_exists相同。","description_zh_html":"为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从\u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e中选出的 JSON 值。对于\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. 布尔谓词检查表达式\"\u003e谓词检查表达式\u003c/a\u003e，它返回谓词检查的结果：\u003ccode class=\"literal\"\u003etrue\u003c/code\u003e、\u003ccode class=\"literal\"\u003efalse\u003c/code\u003e或\u003ccode class=\"literal\"\u003enull\u003c/code\u003e。可选的\u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e和\u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e参数的作用与\u003ccode class=\"function\"\u003ejsonb_path_exists\u003c/code\u003e相同。","signatures":[{"description_zh":"为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从target中选出的 JSON 值。对于谓词检查表达式，它返回谓词检查的结果：true、false或null。可选的vars和silent参数的作用与jsonb_path_exists相同。","description_zh_html":"为指定的 JSON 值返回由 JSON 路径返回的所有 JSON 项。对于 SQL 标准 JSON 路径表达式，它返回从\u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e中选出的 JSON 值。对于\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. 布尔谓词检查表达式\"\u003e谓词检查表达式\u003c/a\u003e，它返回谓词检查的结果：\u003ccode class=\"literal\"\u003etrue\u003c/code\u003e、\u003ccode class=\"literal\"\u003efalse\u003c/code\u003e或\u003ccode class=\"literal\"\u003enull\u003c/code\u003e。可选的\u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e和\u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e参数的作用与\u003ccode class=\"function\"\u003ejsonb_path_exists\u003c/code\u003e相同。","returns":"setof jsonb","text":"jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"369fcbcdc4d49a3a0c0644d419c68189ea48187744c2daabc2e8fcaef69c7445","Text":"jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb","Returns":"setof jsonb","Payload":{"description":"Returns all JSON items returned by the JSON path for the specified JSON value. For SQL-standard JSON path expressions it returns the JSON values selected from target. For predicate check expressions it returns the result of the predicate check: true, false, or null. The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns all JSON items returned by the JSON path for the specified JSON value. For SQL-standard JSON path expressions it returns the JSON values selected from \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e. For \u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. Boolean Predicate Check Expressions\"\u003epredicate check expressions\u003c/a\u003e it returns the result of the predicate check: \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e, or \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. The optional \u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e arguments act the same as for \u003ccode class=\"function\"\u003ejsonb_path_exists\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"select * from jsonb_path_query('{\"a\":[1,2,3,4,5]}', '$.a[*] ? (@ \u003e= $min \u0026\u0026 @ \u003c= $max)', '{\"min\":2, \"max\":4}')","result":" jsonb_path_query\n------------------\n 2\n 3\n 4"}],"html":"\u003ccode class=\"function\"\u003ejsonb_path_query\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epath\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonpath\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e ]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003esetof jsonb\u003c/code\u003e","returns":"setof jsonb","text":"jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
