{"Entry":{"collection":"func","key":"trim-array","name":"trim_array","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"13","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"14"}],"content_hash":"b68468c7ec9d37d4b30dd7c2fc567ae7e66adea1a417f356f0cb6a2aad2ea412","first_version":"14","group":"array","group_label":"Array Functions And Operators","groups":["array"],"imported_at":"2026-09-14T21:49:48.838622+08:00","last_version":"20","name":"trim_array","name_key":"trim_array","position":19019,"present_in":["14","15","16","17","18","19","20"],"signature":"trim_array ( array anyarray, n integer ) → anyarray","signature_count":1,"slug":"trim-array","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Trims an array by removing the last n elements.","summary_zh":""}},"Definition":{"Collection":"func","Key":"trim-array","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"trim-array","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Trims an array by removing the last n elements. If the array is multidimensional, only the first dimension is trimmed.","description_html":"Trims an array by removing the last \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e elements. If the array is multidimensional, only the first dimension is trimmed.","description_zh":"","description_zh_html":"","doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"},"group":"array","group_label":"Array Functions And Operators","lang":"en","layout":"table-new","pages":["functions-array.html"],"prose_only":false,"signatures":[{"description":"Trims an array by removing the last n elements. If the array is multidimensional, only the first dimension is trimmed.","description_html":"Trims an array by removing the last \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e elements. If the array is multidimensional, only the first dimension is trimmed.","description_zh":"","description_zh_html":"","examples":[{"expr":"trim_array(ARRAY[1,2,3,4,5,6], 2)","result":"{1,2,3,4}"}],"html":"\u003ccode class=\"function\"\u003etrim_array\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003earray\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"trim_array ( array anyarray, n integer ) → anyarray","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"trim-array","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"trim_array","Summary":"通过删除最后的n个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。","BodyHTML":"通过删除最后的\u003cem\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。\u003cpre\u003etrim_array ( array anyarray, n integer ) → anyarray\u003c/pre\u003e通过删除最后的\u003cem\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。","SourceRevision":"ca936764","ContentHash":"32520ea158c39ea7aad2b5fb11e1a4151083c9788337ac39c8b94fa3c2bfc5f0","Payload":{"description_zh":"通过删除最后的n个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。","description_zh_html":"通过删除最后的\u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。","signatures":[{"description_zh":"通过删除最后的n个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。","description_zh_html":"通过删除最后的\u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e个元素来裁剪数组。如果数组是多维的，则只裁剪第一个维度。","returns":"anyarray","text":"trim_array ( array anyarray, n integer ) → anyarray","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"50d0627bd5d6edcb14e3d67bad17d12b7b6fe8fc37c38217d3b1423b92be6b87","Text":"trim_array ( array anyarray, n integer ) → anyarray","Returns":"anyarray","Payload":{"description":"Trims an array by removing the last n elements. If the array is multidimensional, only the first dimension is trimmed.","description_html":"Trims an array by removing the last \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e elements. If the array is multidimensional, only the first dimension is trimmed.","description_zh":"","description_zh_html":"","examples":[{"expr":"trim_array(ARRAY[1,2,3,4,5,6], 2)","result":"{1,2,3,4}"}],"html":"\u003ccode class=\"function\"\u003etrim_array\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003earray\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"trim_array ( array anyarray, n integer ) → anyarray","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
