{"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","derived_content_hash":"6a2900613716f8d304e9ac9b194147160cafab8fcb27d4502e1f4db61231015c","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:e337c264660bdfe90f8d2ac2d748646b08224609d985e6b3945bc415b89d2687","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"67b1fb1bfcd7f9e3f13cce225e87430e6b2e240cc5aaa7af45ff985041f415f2","repair":"wiki-repair-20261023"},"signature":"jsonb_path_query ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → setof jsonb","signature_count":1,"slug":"jsonb-path-query","source_rev":"wiki-repair-20261023:e337c264660bdfe90f8d2ac2d748646b08224609d985e6b3945bc415b89d2687","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":"wiki-repair-20261023:e337c264660bdfe90f8d2ac2d748646b08224609d985e6b3945bc415b89d2687","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":"为指定的 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 相同。","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","version":"18.7"},{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"31b98fa7f00387abf441728c31918bfe8b368642bceeb8bba88a73c3fbd607de","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"json","group_label":"JSON 函数和操作符","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":"为指定的 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 相同。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-json.html","sha256":"a412feb14a229f1d9f14fa2d7735255aa297d5eb8f2971d744d9dfee659c7cca"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-path-query","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jsonb_path_query","Summary":"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.","BodyHTML":"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\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e. For \u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" rel=\"nofollow\"\u003epredicate check expressions\u003c/a\u003e it returns the result of the predicate check: \u003ccode\u003etrue\u003c/code\u003e, \u003ccode\u003efalse\u003c/code\u003e, or \u003ccode\u003enull\u003c/code\u003e. The optional \u003cem\u003e\u003ccode\u003evars\u003c/code\u003e\u003c/em\u003e and \u003cem\u003e\u003ccode\u003esilent\u003c/code\u003e\u003c/em\u003e arguments act the same as for \u003ccode\u003ejsonb_path_exists\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:e337c264660bdfe90f8d2ac2d748646b08224609d985e6b3945bc415b89d2687","ContentHash":"2845d7a699f24ae3f80b5783530628155cac89e016e0c1fced4cb5b4ceabed3d","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.","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":"为指定的 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 相同。","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":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"c5486c46f01d0e5bb9a2f1744dc924c323302f307af9f476a2e109cfc2842d54","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":"为指定的 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 相同。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
