{"Entry":{"collection":"func","key":"json-populate-recordset","name":"json_populate_recordset","aliases":[],"metadata":{"changed_in":["9.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":["json_populate_recordset ( base anyelement, from_json json ) → setof anyelement"],"removed":["json_populate_recordset ( base anyelement, from_json json, [, use_json_as_text bool=false] ) → SETOF anyelement"]},"status":"changed","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"bf08f162988ca7fc2404b7437f5b5a6fa272a8db9d01236f5ad7d5c7bcaa062f","derived_content_hash":"880076cfb73c8f2faaf0b791cbdaf557fd04824f5e07963b682393e08635b4af","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:e716c65a6396b78d30adda18269d475e4f58fb327dec375bb4de07c8792d17b9","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.3","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.791609+08:00","last_version":"20","name":"json_populate_recordset","name_key":"json_populate_recordset","position":16016,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:32eaaab5c8527a026811c0ca5da80bf4bf20e155a720eeed84352eeeefe8c9c6","receipt_sha256":"45e8c8b9a594d897e2aaabebf6d5d8981409e4b31588ae0606a6d5fdc9147ffa","repair":"wiki-repair-20261023"},"signature":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","signature_count":1,"slug":"json-populate-recordset","source_rev":"wiki-repair-20261023:e716c65a6396b78d30adda18269d475e4f58fb327dec375bb4de07c8792d17b9","summary":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-populate-recordset","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-populate-recordset","SourceRevision":"wiki-repair-20261023:e716c65a6396b78d30adda18269d475e4f58fb327dec375bb4de07c8792d17b9","Facts":{"description":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument. Each element of the JSON array is processed as described above for json[b]_populate_record.","description_html":"Expands the top-level JSON array of objects to a set of rows having the composite type of the \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e argument. Each element of the JSON array is processed as described above for \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e.","description_zh":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 base 参数相同。JSON 数组中的每个元素都按照上文对 json[b]_populate_record 的说明进行处理。","description_zh_html":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e 参数相同。JSON 数组中的每个元素都按照上文对 \u003ccode class=\"function\"\u003ejson[b]_populate_record\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":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument. Each element of the JSON array is processed as described above for json[b]_populate_record.","description_html":"Expands the top-level JSON array of objects to a set of rows having the composite type of the \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e argument. Each element of the JSON array is processed as described above for \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e.","description_zh":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 base 参数相同。JSON 数组中的每个元素都按照上文对 json[b]_populate_record 的说明进行处理。","description_zh_html":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e 参数相同。JSON 数组中的每个元素都按照上文对 \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e 的说明进行处理。","examples":[{"expr":"select * from json_populate_recordset(null::twoints, '[{\"a\":1,\"b\":2}, {\"a\":3,\"b\":4}]')","result":" a | b\n---+---\n 1 | 2\n 3 | 4"}],"html":"\u003ccode class=\"function\"\u003ejson_populate_recordset\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\"\u003esetof anyelement\u003c/code\u003e","returns":"setof anyelement","text":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","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":"json-populate-recordset","SourceDatabase":"center","Version":"18","Locale":"en","Title":"json_populate_recordset","Summary":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument. Each element of the JSON array is processed as described above for json[b]_populate_record.","BodyHTML":"Expands the top-level JSON array of objects to a set of rows having the composite type of the \u003cem\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e argument. Each element of the JSON array is processed as described above for \u003ccode\u003ejson[b]_populate_record\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:e716c65a6396b78d30adda18269d475e4f58fb327dec375bb4de07c8792d17b9","ContentHash":"be6ee1f2f3566c75ce86e3620af7c4b91fb4d64efb00f545b716e74f74805b9f","Payload":{"description":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument. Each element of the JSON array is processed as described above for json[b]_populate_record.","description_html":"Expands the top-level JSON array of objects to a set of rows having the composite type of the \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e argument. Each element of the JSON array is processed as described above for \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e.","signatures":[{"description":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument. Each element of the JSON array is processed as described above for json[b]_populate_record.","description_html":"Expands the top-level JSON array of objects to a set of rows having the composite type of the \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e argument. Each element of the JSON array is processed as described above for \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e.","description_zh":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 base 参数相同。JSON 数组中的每个元素都按照上文对 json[b]_populate_record 的说明进行处理。","description_zh_html":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e 参数相同。JSON 数组中的每个元素都按照上文对 \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e 的说明进行处理。","examples":[{"expr":"select * from json_populate_recordset(null::twoints, '[{\"a\":1,\"b\":2}, {\"a\":3,\"b\":4}]')","result":" a | b\n---+---\n 1 | 2\n 3 | 4"}],"html":"\u003ccode class=\"function\"\u003ejson_populate_recordset\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\"\u003esetof anyelement\u003c/code\u003e","returns":"setof anyelement","text":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"c9e60b0e3bb7125d0a405eb796d9293d01d039b5fd9f8aa5c3638543283c9e9f","Text":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","Returns":"setof anyelement","Payload":{"description":"Expands the top-level JSON array of objects to a set of rows having the composite type of the base argument. Each element of the JSON array is processed as described above for json[b]_populate_record.","description_html":"Expands the top-level JSON array of objects to a set of rows having the composite type of the \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e argument. Each element of the JSON array is processed as described above for \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e.","description_zh":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 base 参数相同。JSON 数组中的每个元素都按照上文对 json[b]_populate_record 的说明进行处理。","description_zh_html":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与 \u003cem class=\"parameter\"\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e 参数相同。JSON 数组中的每个元素都按照上文对 \u003ccode class=\"function\"\u003ejson[b]_populate_record\u003c/code\u003e 的说明进行处理。","examples":[{"expr":"select * from json_populate_recordset(null::twoints, '[{\"a\":1,\"b\":2}, {\"a\":3,\"b\":4}]')","result":" a | b\n---+---\n 1 | 2\n 3 | 4"}],"html":"\u003ccode class=\"function\"\u003ejson_populate_recordset\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\"\u003esetof anyelement\u003c/code\u003e","returns":"setof anyelement","text":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
