{"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","derived_content_hash":"5bb3920881e9b6ff4783d4215ebfd2a2af83becca6681107a3ee6653b12db09f","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"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"16023d69488c4485e2cdcccc9267d763be846d88f7afcbecc7e5db4705ee2619","repair":"wiki-repair-20261023"},"signature":"array_replace ( anycompatiblearray, anycompatible, anycompatible ) → anycompatiblearray","signature_count":1,"slug":"array-replace","source_rev":"wiki-repair-20261023:e6e5c9a7702aebe7f9a8d2c16067cb1690f7857babba922d426fa3c747709c83","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":"wiki-repair-20261023:e6e5c9a7702aebe7f9a8d2c16067cb1690f7857babba922d426fa3c747709c83","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":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-array.html","sha256":"a25a0710e8f84e027ef945e85452074399887341e22d79542584f9c646b8f076"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"array-replace","SourceDatabase":"center","Version":"18","Locale":"en","Title":"array_replace","Summary":"Replaces each array element equal to the second argument with the third argument.","BodyHTML":"Replaces each array element equal to the second argument with the third argument.","SourceRevision":"wiki-repair-20261023:e6e5c9a7702aebe7f9a8d2c16067cb1690f7857babba922d426fa3c747709c83","ContentHash":"926087968193fadc7e1c2c6f0db7481400a2e35ac6629860442f9ff3a740d199","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.","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":"same-version-pgdoc"}]}},"RequestedLocale":"en","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":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
