{"Entry":{"collection":"func","key":"jsonb-populate-record-valid","name":"jsonb_populate_record_valid","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"17"}],"content_hash":"a52a2372093999c345747c98d359a67535641152dc1d857456072bd4b60b678e","derived_content_hash":"05d725d288b56e9dd1ba7f40567ef93bdefe401a3d7866b7bead9b0efe6afdb4","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:80b4d371565fc386a07453c95fa045fe130f3cb46e07c36eb9b8b1a0bdf6e565","versions":{"17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"17","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.811964+08:00","last_version":"20","name":"jsonb_populate_record_valid","name_key":"jsonb_populate_record_valid","position":16049,"present_in":["17","18","19","20"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"ee1a841970b26feff7404ba2cf87f87393b534f95b61ddb403ef74dd25a4c8cf","repair":"wiki-repair-20261023"},"signature":"jsonb_populate_record_valid ( base anyelement, from_json json ) → boolean","signature_count":1,"slug":"jsonb-populate-record-valid","source_rev":"wiki-repair-20261023:80b4d371565fc386a07453c95fa045fe130f3cb46e07c36eb9b8b1a0bdf6e565","summary":"Function for testing jsonb_populate_record.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-populate-record-valid","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-populate-record-valid","SourceRevision":"wiki-repair-20261023:80b4d371565fc386a07453c95fa045fe130f3cb46e07c36eb9b8b1a0bdf6e565","Facts":{"description":"Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the given input JSON object; that is, it's valid input, false otherwise.","description_html":"Function for testing \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e. Returns \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e if the input \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e would finish without an error for the given input JSON object; that is, it's valid input, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e otherwise.","description_zh":"用于测试 jsonb_populate_record 的函数。对于给定的输入 JSON 对象，如果 jsonb_populate_record 能够无错误地完成，即该输入有效，则返回 true；否则返回 false。","description_zh_html":"用于测试 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 的函数。对于给定的输入 JSON 对象，如果 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 能够无错误地完成，即该输入有效，则返回 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e；否则返回 \u003ccode class=\"literal\"\u003efalse\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":"Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the given input JSON object; that is, it's valid input, false otherwise.","description_html":"Function for testing \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e. Returns \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e if the input \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e would finish without an error for the given input JSON object; that is, it's valid input, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e otherwise.","description_zh":"用于测试 jsonb_populate_record 的函数。对于给定的输入 JSON 对象，如果 jsonb_populate_record 能够无错误地完成，即该输入有效，则返回 true；否则返回 false。","description_zh_html":"用于测试 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 的函数。对于给定的输入 JSON 对象，如果 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 能够无错误地完成，即该输入有效，则返回 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e；否则返回 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。","examples":[{"expr":"select jsonb_populate_record_valid(NULL::jsb_char2, '{\"a\": \"aaa\"}');","result":" jsonb_populate_record_valid\n-----------------------------\n f\n(1 row)"},{"expr":"select * from jsonb_populate_record(NULL::jsb_char2, '{\"a\": \"aaa\"}') q;","result":"ERROR:  value too long for type character(2)"},{"expr":"select jsonb_populate_record_valid(NULL::jsb_char2, '{\"a\": \"aa\"}');","result":" jsonb_populate_record_valid\n-----------------------------\n t\n(1 row)"},{"expr":"select * from jsonb_populate_record(NULL::jsb_char2, '{\"a\": \"aa\"}') q;","result":" a\n----\n aa\n(1 row)"}],"html":"\u003ccode class=\"function\"\u003ejsonb_populate_record_valid\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003efrom_json\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"jsonb_populate_record_valid ( base anyelement, from_json json ) → 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-populate-record-valid","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jsonb_populate_record_valid","Summary":"Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the given input JSON object; that is, it's valid input, false otherwise.","BodyHTML":"Function for testing \u003ccode\u003ejsonb_populate_record\u003c/code\u003e. Returns \u003ccode\u003etrue\u003c/code\u003e if the input \u003ccode\u003ejsonb_populate_record\u003c/code\u003e would finish without an error for the given input JSON object; that is, it\u0026#39;s valid input, \u003ccode\u003efalse\u003c/code\u003e otherwise.","SourceRevision":"wiki-repair-20261023:80b4d371565fc386a07453c95fa045fe130f3cb46e07c36eb9b8b1a0bdf6e565","ContentHash":"24abd1362aef797189164b47f3a70a5148a007b075ec72b2ab6d6b69a738b52d","Payload":{"description":"Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the given input JSON object; that is, it's valid input, false otherwise.","description_html":"Function for testing \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e. Returns \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e if the input \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e would finish without an error for the given input JSON object; that is, it's valid input, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e otherwise.","signatures":[{"description":"Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the given input JSON object; that is, it's valid input, false otherwise.","description_html":"Function for testing \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e. Returns \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e if the input \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e would finish without an error for the given input JSON object; that is, it's valid input, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e otherwise.","description_zh":"用于测试 jsonb_populate_record 的函数。对于给定的输入 JSON 对象，如果 jsonb_populate_record 能够无错误地完成，即该输入有效，则返回 true；否则返回 false。","description_zh_html":"用于测试 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 的函数。对于给定的输入 JSON 对象，如果 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 能够无错误地完成，即该输入有效，则返回 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e；否则返回 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。","examples":[{"expr":"select jsonb_populate_record_valid(NULL::jsb_char2, '{\"a\": \"aaa\"}');","result":" jsonb_populate_record_valid\n-----------------------------\n f\n(1 row)"},{"expr":"select * from jsonb_populate_record(NULL::jsb_char2, '{\"a\": \"aaa\"}') q;","result":"ERROR:  value too long for type character(2)"},{"expr":"select jsonb_populate_record_valid(NULL::jsb_char2, '{\"a\": \"aa\"}');","result":" jsonb_populate_record_valid\n-----------------------------\n t\n(1 row)"},{"expr":"select * from jsonb_populate_record(NULL::jsb_char2, '{\"a\": \"aa\"}') q;","result":" a\n----\n aa\n(1 row)"}],"html":"\u003ccode class=\"function\"\u003ejsonb_populate_record_valid\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003efrom_json\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"jsonb_populate_record_valid ( base anyelement, from_json json ) → boolean","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"dfcf93de1134e693d5209f23fbf4edf33fe997ad3725cf407455889cd88a3402","Text":"jsonb_populate_record_valid ( base anyelement, from_json json ) → boolean","Returns":"boolean","Payload":{"description":"Function for testing jsonb_populate_record. Returns true if the input jsonb_populate_record would finish without an error for the given input JSON object; that is, it's valid input, false otherwise.","description_html":"Function for testing \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e. Returns \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e if the input \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e would finish without an error for the given input JSON object; that is, it's valid input, \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e otherwise.","description_zh":"用于测试 jsonb_populate_record 的函数。对于给定的输入 JSON 对象，如果 jsonb_populate_record 能够无错误地完成，即该输入有效，则返回 true；否则返回 false。","description_zh_html":"用于测试 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 的函数。对于给定的输入 JSON 对象，如果 \u003ccode class=\"function\"\u003ejsonb_populate_record\u003c/code\u003e 能够无错误地完成，即该输入有效，则返回 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e；否则返回 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。","examples":[{"expr":"select jsonb_populate_record_valid(NULL::jsb_char2, '{\"a\": \"aaa\"}');","result":" jsonb_populate_record_valid\n-----------------------------\n f\n(1 row)"},{"expr":"select * from jsonb_populate_record(NULL::jsb_char2, '{\"a\": \"aaa\"}') q;","result":"ERROR:  value too long for type character(2)"},{"expr":"select jsonb_populate_record_valid(NULL::jsb_char2, '{\"a\": \"aa\"}');","result":" jsonb_populate_record_valid\n-----------------------------\n t\n(1 row)"},{"expr":"select * from jsonb_populate_record(NULL::jsb_char2, '{\"a\": \"aa\"}') q;","result":" a\n----\n aa\n(1 row)"}],"html":"\u003ccode class=\"function\"\u003ejsonb_populate_record_valid\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003efrom_json\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"jsonb_populate_record_valid ( base anyelement, from_json json ) → boolean","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
