{"Entry":{"collection":"func","key":"jsonb-path-match","name":"jsonb_path_match","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":"7668a6c257377a0b5e96f3bb2fc51b109a5482c2da9d98f7a82f5bd0337a17c8","derived_content_hash":"1a53874b0e4f06e77d7ac687bd1626292329ad36a6c7bdcc801ecbbf6f39e0b4","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:2a8b954464a8777b9eb0ef18789384cd66009faaf2ccba71ffc87c32c542d7f4","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.806387+08:00","last_version":"20","name":"jsonb_path_match","name_key":"jsonb_path_match","position":16040,"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":"55d1814b91c2c3940d1e03175ddb7bc027b2715e48fd2c055b2dcad9f549ae6f","repair":"wiki-repair-20261023"},"signature":"jsonb_path_match ( target jsonb, path jsonpath [, vars jsonb [, silent boolean ]] ) → boolean","signature_count":1,"slug":"jsonb-path-match","source_rev":"wiki-repair-20261023:2a8b954464a8777b9eb0ef18789384cd66009faaf2ccba71ffc87c32c542d7f4","summary":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-path-match","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-path-match","SourceRevision":"wiki-repair-20261023:2a8b954464a8777b9eb0ef18789384cd66009faaf2ccba71ffc87c32c542d7f4","Facts":{"description":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with predicate check expressions, not SQL-standard JSON path expressions, since it will either fail or return NULL if the path result is not a single boolean value.) The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with \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, not SQL-standard JSON path expressions, since it will either fail or return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the path result is not a single boolean value.) 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 路径谓词检查的 SQL 布尔结果。（这只对谓词检查表达式有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 NULL。）可选的 vars 和 silent 参数的作用与 jsonb_path_exists 相同。","description_zh_html":"返回指定 JSON 值的 JSON 路径谓词检查的 SQL 布尔结果。（这只对\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. 布尔谓词检查表达式\"\u003e谓词检查表达式\u003c/a\u003e有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 \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 the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with predicate check expressions, not SQL-standard JSON path expressions, since it will either fail or return NULL if the path result is not a single boolean value.) The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with \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, not SQL-standard JSON path expressions, since it will either fail or return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the path result is not a single boolean value.) 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 路径谓词检查的 SQL 布尔结果。（这只对谓词检查表达式有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 NULL。）可选的 vars 和 silent 参数的作用与 jsonb_path_exists 相同。","description_zh_html":"返回指定 JSON 值的 JSON 路径谓词检查的 SQL 布尔结果。（这只对\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. 布尔谓词检查表达式\"\u003e谓词检查表达式\u003c/a\u003e有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 \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":"jsonb_path_match('{\"a\":[1,2,3,4,5]}', 'exists($.a[*] ? (@ \u003e= $min \u0026\u0026 @ \u003c= $max))', '{\"min\":2, \"max\":4}')","result":"t"}],"html":"\u003ccode class=\"function\"\u003ejsonb_path_match\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"jsonb_path_match ( target jsonb, path jsonpath [, vars jsonb [, silent boolean]] ) → boolean","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-match","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jsonb_path_match","Summary":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with predicate check expressions, not SQL-standard JSON path expressions, since it will either fail or return NULL if the path result is not a single boolean value.) The optional vars and silent arguments act the same as for jsonb_path_exists.","BodyHTML":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with \u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" rel=\"nofollow\"\u003epredicate check expressions\u003c/a\u003e, not SQL-standard JSON path expressions, since it will either fail or return \u003ccode\u003eNULL\u003c/code\u003e if the path result is not a single boolean value.) 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:2a8b954464a8777b9eb0ef18789384cd66009faaf2ccba71ffc87c32c542d7f4","ContentHash":"4d020c9d4d071215066dd9939fa6a1afc5d130f4eeda586a843c603863dc9568","Payload":{"description":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with predicate check expressions, not SQL-standard JSON path expressions, since it will either fail or return NULL if the path result is not a single boolean value.) The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with \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, not SQL-standard JSON path expressions, since it will either fail or return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the path result is not a single boolean value.) 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 the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with predicate check expressions, not SQL-standard JSON path expressions, since it will either fail or return NULL if the path result is not a single boolean value.) The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with \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, not SQL-standard JSON path expressions, since it will either fail or return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the path result is not a single boolean value.) 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 路径谓词检查的 SQL 布尔结果。（这只对谓词检查表达式有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 NULL。）可选的 vars 和 silent 参数的作用与 jsonb_path_exists 相同。","description_zh_html":"返回指定 JSON 值的 JSON 路径谓词检查的 SQL 布尔结果。（这只对\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. 布尔谓词检查表达式\"\u003e谓词检查表达式\u003c/a\u003e有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 \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":"jsonb_path_match('{\"a\":[1,2,3,4,5]}', 'exists($.a[*] ? (@ \u003e= $min \u0026\u0026 @ \u003c= $max))', '{\"min\":2, \"max\":4}')","result":"t"}],"html":"\u003ccode class=\"function\"\u003ejsonb_path_match\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"jsonb_path_match ( target jsonb, path jsonpath [, vars jsonb [, silent boolean]] ) → boolean","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":"8d3e728015abc1d0b62bffcaa13db2141c2d6522bd75904fcb68f053a34d0235","Text":"jsonb_path_match ( target jsonb, path jsonpath [, vars jsonb [, silent boolean]] ) → boolean","Returns":"boolean","Payload":{"description":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with predicate check expressions, not SQL-standard JSON path expressions, since it will either fail or return NULL if the path result is not a single boolean value.) The optional vars and silent arguments act the same as for jsonb_path_exists.","description_html":"Returns the SQL boolean result of a JSON path predicate check for the specified JSON value. (This is useful only with \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, not SQL-standard JSON path expressions, since it will either fail or return \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the path result is not a single boolean value.) 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 路径谓词检查的 SQL 布尔结果。（这只对谓词检查表达式有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 NULL。）可选的 vars 和 silent 参数的作用与 jsonb_path_exists 相同。","description_zh_html":"返回指定 JSON 值的 JSON 路径谓词检查的 SQL 布尔结果。（这只对\u003ca href=\"/docs/18/functions-json.html#FUNCTIONS-SQLJSON-CHECK-EXPRESSIONS\" title=\"9.16.2.1.1. 布尔谓词检查表达式\"\u003e谓词检查表达式\u003c/a\u003e有用，而不适用于 SQL 标准 JSON 路径表达式，因为如果路径结果不是单个布尔值，它将失败或返回 \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":"jsonb_path_match('{\"a\":[1,2,3,4,5]}', 'exists($.a[*] ? (@ \u003e= $min \u0026\u0026 @ \u003c= $max))', '{\"min\":2, \"max\":4}')","result":"t"}],"html":"\u003ccode class=\"function\"\u003ejsonb_path_match\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"jsonb_path_match ( target jsonb, path jsonpath [, vars jsonb [, silent boolean]] ) → boolean","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
