{"Entry":{"collection":"func","key":"array-remove","name":"array_remove","aliases":[],"metadata":{"changed_in":["14"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.3"},{"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":"13","group_changed":null,"signatures":{"added":["array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray"],"removed":["array_remove ( anyarray, anyelement ) → anyarray"]},"status":"changed","to":"14"}],"content_hash":"6245cc2680fa93e4b863ca81068ad784832ea2343cb6d94dcbf0b9f040bfaaa4","first_version":"9.3","group":"array","group_label":"Array Functions And Operators","groups":["array"],"imported_at":"2026-09-14T21:49:48.834217+08:00","last_version":"20","name":"array_remove","name_key":"array_remove","position":19010,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray","signature_count":1,"slug":"array-remove","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Removes all elements equal to the given value from the array.","summary_zh":""}},"Definition":{"Collection":"func","Key":"array-remove","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"array-remove","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Removes all elements equal to the given value from the array. The array must be one-dimensional. Comparisons are done using IS NOT DISTINCT FROM semantics, so it is possible to remove NULLs.","description_html":"Removes all elements equal to the given value from the array. The array must be one-dimensional. Comparisons are done using \u003ccode class=\"literal\"\u003eIS NOT DISTINCT FROM\u003c/code\u003e semantics, so it is possible to remove \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003es.","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":"Removes all elements equal to the given value from the array. The array must be one-dimensional. Comparisons are done using IS NOT DISTINCT FROM semantics, so it is possible to remove NULLs.","description_html":"Removes all elements equal to the given value from the array. The array must be one-dimensional. Comparisons are done using \u003ccode class=\"literal\"\u003eIS NOT DISTINCT FROM\u003c/code\u003e semantics, so it is possible to remove \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003es.","description_zh":"","description_zh_html":"","examples":[{"expr":"array_remove(ARRAY[1,2,3,2], 2)","result":"{1,3}"}],"html":"\u003ccode class=\"function\"\u003earray_remove\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanycompatiblearray\u003c/code\u003e, \u003ccode class=\"type\"\u003eanycompatible\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanycompatiblearray\u003c/code\u003e","returns":"anycompatiblearray","text":"array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"array-remove","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"array_remove","Summary":"从数组中移除与给定值相等的所有元素。数组必须是一维的。使用IS NOT DISTINCT FROM语义完成比较，所以可以删除NULL。","BodyHTML":"从数组中移除与给定值相等的所有元素。数组必须是一维的。使用\u003ccode\u003eIS NOT DISTINCT FROM\u003c/code\u003e语义完成比较，所以可以删除\u003ccode\u003eNULL\u003c/code\u003e。\u003cpre\u003earray_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray\u003c/pre\u003e从数组中移除与给定值相等的所有元素。数组必须是一维的。使用\u003ccode\u003eIS NOT DISTINCT FROM\u003c/code\u003e语义完成比较，所以可以删除\u003ccode\u003eNULL\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"0af52362d1f39e3bff4f70c207eb82794d0598e3bf91ba47013ce7ddc8335189","Payload":{"description_zh":"从数组中移除与给定值相等的所有元素。数组必须是一维的。使用IS NOT DISTINCT FROM语义完成比较，所以可以删除NULL。","description_zh_html":"从数组中移除与给定值相等的所有元素。数组必须是一维的。使用\u003ccode class=\"literal\"\u003eIS NOT DISTINCT FROM\u003c/code\u003e语义完成比较，所以可以删除\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","signatures":[{"description_zh":"从数组中移除与给定值相等的所有元素。数组必须是一维的。使用IS NOT DISTINCT FROM语义完成比较，所以可以删除NULL。","description_zh_html":"从数组中移除与给定值相等的所有元素。数组必须是一维的。使用\u003ccode class=\"literal\"\u003eIS NOT DISTINCT FROM\u003c/code\u003e语义完成比较，所以可以删除\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","returns":"anycompatiblearray","text":"array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray","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":"2f1045e62c21d08d5c6699416ad323553d128d81086228e62703d6224cf36acf","Text":"array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray","Returns":"anycompatiblearray","Payload":{"description":"Removes all elements equal to the given value from the array. The array must be one-dimensional. Comparisons are done using IS NOT DISTINCT FROM semantics, so it is possible to remove NULLs.","description_html":"Removes all elements equal to the given value from the array. The array must be one-dimensional. Comparisons are done using \u003ccode class=\"literal\"\u003eIS NOT DISTINCT FROM\u003c/code\u003e semantics, so it is possible to remove \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003es.","description_zh":"","description_zh_html":"","examples":[{"expr":"array_remove(ARRAY[1,2,3,2], 2)","result":"{1,3}"}],"html":"\u003ccode class=\"function\"\u003earray_remove\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanycompatiblearray\u003c/code\u003e, \u003ccode class=\"type\"\u003eanycompatible\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanycompatiblearray\u003c/code\u003e","returns":"anycompatiblearray","text":"array_remove ( anycompatiblearray, anycompatible ) → anycompatiblearray","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
