{"Entry":{"collection":"func","key":"array-agg","name":"array_agg","aliases":[],"metadata":{"changed_in":["9.5","17"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.0"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":["array_agg ( expression ) → same as argument data type"],"removed":[]},"status":"changed","to":"9.5"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":["array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray","array_agg ( anyarray ORDER BY input_sort_columns ) → anyarray"],"removed":["array_agg ( anynonarray ) → anyarray","array_agg ( anyarray ) → anyarray"]},"status":"changed","to":"17"}],"content_hash":"1883abdac9e476efb23904a3d7df85c3c410c0ac7633ebe28da12ab3669ab6bb","derived_content_hash":"633d22f4cb5d171dad90a01a0c5020bf0eca688a6df9398039a1340cbe450a29","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:153b8bed79598bb044da24325d0ceecc0e2e0963cb441844fbf7a5b22179d40f","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.4","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-27T17:57:28.893803+08:00","last_version":"20","name":"array_agg","name_key":"array_agg","position":21001,"present_in":["8.4","9.0","9.1","9.2","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:ff34a25a67f58fb8de7a6ed291e54128f162ca018bfac67bef0efe4f94f6191e","receipt_sha256":"4b5c414b4785edd1446db1de4757e6c7a53a21435c4d2140a7f0fea0dec4de31","repair":"wiki-repair-20261023"},"signature":"array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray","signature_count":2,"slug":"array-agg","source_rev":"wiki-repair-20261023:153b8bed79598bb044da24325d0ceecc0e2e0963cb441844fbf7a5b22179d40f","summary":"Collects all the input values, including nulls, into an array.","summary_zh":""}},"Definition":{"Collection":"func","Key":"array-agg","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"array-agg","SourceRevision":"wiki-repair-20261023:153b8bed79598bb044da24325d0ceecc0e2e0963cb441844fbf7a5b22179d40f","Facts":{"description":"Collects all the input values, including nulls, into an array.","description_html":"Collects all the input values, including nulls, into an array.","description_zh":"将所有输入值，包括空值，收集到一个数组中。","description_zh_html":"将所有输入值，包括空值，收集到一个数组中。","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","version":"18.7"},{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"0bf7506d27b71666fc74840a21a8f77c8a92735174f1d05033865961722e457c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"aggregate","group_label":"聚合函数","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Collects all the input values, including nulls, into an array.","description_html":"Collects all the input values, including nulls, into an array.","description_zh":"将所有输入值，包括空值，收集到一个数组中。","description_zh_html":"将所有输入值，包括空值，收集到一个数组中。","examples":[],"html":"\u003ccode class=\"function\"\u003earray_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanynonarray\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray","zh_from":"same-version-manual"},{"description":"Concatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)","description_html":"Concatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)","description_zh":"将所有输入数组连接成维数增加一维的数组。（所有输入的维数必须相同，且不能是空数组或空值（NULL）。）","description_zh_html":"将所有输入数组连接成维数增加一维的数组。（所有输入的维数必须相同，且不能是空数组或空值（\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e）。）","examples":[],"html":"\u003ccode class=\"function\"\u003earray_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_agg ( anyarray ORDER BY input_sort_columns ) → anyarray","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-aggregate.html","sha256":"68da7af09e2749a855188bbbff99ae036fc7eece4e19b8e048baffd28aa3ca59"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"array-agg","SourceDatabase":"center","Version":"18","Locale":"en","Title":"array_agg","Summary":"Collects all the input values, including nulls, into an array.","BodyHTML":"Collects all the input values, including nulls, into an array.","SourceRevision":"wiki-repair-20261023:153b8bed79598bb044da24325d0ceecc0e2e0963cb441844fbf7a5b22179d40f","ContentHash":"9d297c919e033344ccac5dc242d8ceb19d009ce39a1362926da255282de3a8e0","Payload":{"description":"Collects all the input values, including nulls, into an array.","description_html":"Collects all the input values, including nulls, into an array.","signatures":[{"description":"Collects all the input values, including nulls, into an array.","description_html":"Collects all the input values, including nulls, into an array.","description_zh":"将所有输入值，包括空值，收集到一个数组中。","description_zh_html":"将所有输入值，包括空值，收集到一个数组中。","examples":[],"html":"\u003ccode class=\"function\"\u003earray_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanynonarray\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray","zh_from":"same-version-manual"},{"description":"Concatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)","description_html":"Concatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)","description_zh":"将所有输入数组连接成维数增加一维的数组。（所有输入的维数必须相同，且不能是空数组或空值（NULL）。）","description_zh_html":"将所有输入数组连接成维数增加一维的数组。（所有输入的维数必须相同，且不能是空数组或空值（\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e）。）","examples":[],"html":"\u003ccode class=\"function\"\u003earray_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_agg ( anyarray ORDER BY input_sort_columns ) → anyarray","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"9b624c787d5fcad864b85dfce463c5e3ff288567c61c807eadaefa3156dcfa91","Text":"array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray","Returns":"anyarray","Payload":{"description":"Collects all the input values, including nulls, into an array.","description_html":"Collects all the input values, including nulls, into an array.","description_zh":"将所有输入值，包括空值，收集到一个数组中。","description_zh_html":"将所有输入值，包括空值，收集到一个数组中。","examples":[],"html":"\u003ccode class=\"function\"\u003earray_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanynonarray\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_agg ( anynonarray ORDER BY input_sort_columns ) → anyarray","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"4cdc904953959d7c1a3d93005b761c31af76181ec97ebd8001ff5c0115875a81","Text":"array_agg ( anyarray ORDER BY input_sort_columns ) → anyarray","Returns":"anyarray","Payload":{"description":"Concatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)","description_html":"Concatenates all the input arrays into an array of one higher dimension. (The inputs must all have the same dimensionality, and cannot be empty or null.)","description_zh":"将所有输入数组连接成维数增加一维的数组。（所有输入的维数必须相同，且不能是空数组或空值（NULL）。）","description_zh_html":"将所有输入数组连接成维数增加一维的数组。（所有输入的维数必须相同，且不能是空数组或空值（\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e）。）","examples":[],"html":"\u003ccode class=\"function\"\u003earray_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_agg ( anyarray ORDER BY input_sort_columns ) → anyarray","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
