{"Entry":{"collection":"func","key":"array-replace","name":"array_replace","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_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray"],"removed":["array_replace ( anyarray, anyelement, anyelement ) → anyarray"]},"status":"changed","to":"14"}],"content_hash":"0b74646344c99ee025735664dde426a52fe13703c370dc2f64382f06fefb4164","first_version":"9.3","group":"array","group_label":"Array Functions And Operators","groups":["array"],"imported_at":"2026-09-14T21:49:48.834809+08:00","last_version":"20","name":"array_replace","name_key":"array_replace","position":19011,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"array_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray","signature_count":1,"slug":"array-replace","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Replaces each array element equal to the second argument with the third argument.","summary_zh":""}},"Definition":{"Collection":"func","Key":"array-replace","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"array-replace","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Replaces each array element equal to the second argument with the third argument.","description_html":"Replaces each array element equal to the second argument with the third argument.","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":"Replaces each array element equal to the second argument with the third argument.","description_html":"Replaces each array element equal to the second argument with the third argument.","description_zh":"","description_zh_html":"","examples":[{"expr":"array_replace(ARRAY[1,2,5,4], 5, 3)","result":"{1,2,3,4}"}],"html":"\u003ccode class=\"function\"\u003earray_replace\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanycompatiblearray\u003c/code\u003e, \u003ccode class=\"type\"\u003eanycompatible\u003c/code\u003e, \u003ccode class=\"type\"\u003eanycompatible\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanycompatiblearray\u003c/code\u003e","returns":"anycompatiblearray","text":"array_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"array-replace","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"array_replace","Summary":"将等于第二个参数的每个数组元素替换为第三个参数。","BodyHTML":"将等于第二个参数的每个数组元素替换为第三个参数。\u003cpre\u003earray_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray\u003c/pre\u003e将等于第二个参数的每个数组元素替换为第三个参数。","SourceRevision":"ca936764","ContentHash":"89abcfcb2193a189f5b7603206a10e9c38da9768e3fb3a43e1df41a13b1719b1","Payload":{"description_zh":"将等于第二个参数的每个数组元素替换为第三个参数。","description_zh_html":"将等于第二个参数的每个数组元素替换为第三个参数。","signatures":[{"description_zh":"将等于第二个参数的每个数组元素替换为第三个参数。","description_zh_html":"将等于第二个参数的每个数组元素替换为第三个参数。","returns":"anycompatiblearray","text":"array_replace ( anycompatiblearray, anycompatible, 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":"ac1465e88545302b1a821eba6f05985b9efe97401aac5245b50f0e0ff80a3c0d","Text":"array_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray","Returns":"anycompatiblearray","Payload":{"description":"Replaces each array element equal to the second argument with the third argument.","description_html":"Replaces each array element equal to the second argument with the third argument.","description_zh":"","description_zh_html":"","examples":[{"expr":"array_replace(ARRAY[1,2,5,4], 5, 3)","result":"{1,2,3,4}"}],"html":"\u003ccode class=\"function\"\u003earray_replace\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanycompatiblearray\u003c/code\u003e, \u003ccode class=\"type\"\u003eanycompatible\u003c/code\u003e, \u003ccode class=\"type\"\u003eanycompatible\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eanycompatiblearray\u003c/code\u003e","returns":"anycompatiblearray","text":"array_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
