{"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","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"],"signature":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","signature_count":1,"slug":"json-populate-recordset","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"","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":"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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-populate-recordset","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"json_populate_recordset","Summary":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与base参数相同。JSON 数组中的每个元素都按照上文对json[b]_populate_record的说明进行处理。","BodyHTML":"将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与\u003cem\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e参数相同。JSON 数组中的每个元素都按照上文对\u003ccode\u003ejson[b]_populate_record\u003c/code\u003e的说明进行处理。\u003cpre\u003ejson_populate_recordset ( base anyelement, from_json json ) → setof anyelement\u003c/pre\u003e将由对象组成的顶级 JSON 数组展开为一组行，其复合类型与\u003cem\u003e\u003ccode\u003ebase\u003c/code\u003e\u003c/em\u003e参数相同。JSON 数组中的每个元素都按照上文对\u003ccode\u003ejson[b]_populate_record\u003c/code\u003e的说明进行处理。","SourceRevision":"ca936764","ContentHash":"3e20d9cf40693b2bce094c1666c1356ac724eb3667d5046a5d6421767febadd6","Payload":{"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的说明进行处理。","signatures":[{"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的说明进行处理。","returns":"setof anyelement","text":"json_populate_recordset ( base anyelement, from_json json ) → setof anyelement","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
