{"Entry":{"collection":"func","key":"array-fill","name":"array_fill","aliases":[],"metadata":{"changed_in":["9.3"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.2","group_changed":null,"signatures":{"added":["array_fill ( anyelement, int[] [, int[]] ) → anyarray"],"removed":["array_fill ( anyelement, int[], [, int[]] ) → anyarray"]},"status":"changed","to":"9.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"a04827805159b2f5574b73701705c2a88338292871818dd9ce76a24f59081275","first_version":"8.4","group":"array","group_label":"Array Functions And Operators","groups":["array"],"imported_at":"2026-09-27T17:57:28.87341+08:00","last_version":"20","name":"array_fill","name_key":"array_fill","position":19003,"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"],"signature":"array_fill ( anyelement, integer[] [, integer[] ] ) → anyarray","signature_count":1,"slug":"array-fill","source_rev":"b7bd9cda","summary":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument.","summary_zh":""}},"Definition":{"Collection":"func","Key":"array-fill","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"array-fill","SourceRevision":"b7bd9cda","Facts":{"description":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument. The optional third argument supplies lower-bound values for each dimension (which default to all 1).","description_html":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument. The optional third argument supplies lower-bound values for each dimension (which default to all \u003ccode class=\"literal\"\u003e1\u003c/code\u003e).","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":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument. The optional third argument supplies lower-bound values for each dimension (which default to all 1).","description_html":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument. The optional third argument supplies lower-bound values for each dimension (which default to all \u003ccode class=\"literal\"\u003e1\u003c/code\u003e).","description_zh":"","description_zh_html":"","examples":[{"expr":"array_fill(11, ARRAY[2,3])","result":"{{11,11,11},{11,11,11}}"},{"expr":"array_fill(7, ARRAY[3], ARRAY[2])","result":"[2:4]={7,7,7}"}],"html":"\u003ccode class=\"function\"\u003earray_fill\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e, \u003ccode class=\"type\"\u003einteger[]\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003ccode class=\"type\"\u003einteger[]\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_fill ( anyelement, integer[] [, integer[] ] ) → anyarray","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"array-fill","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"array_fill","Summary":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为1）。","BodyHTML":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为\u003ccode\u003e1\u003c/code\u003e）。\u003cpre\u003earray_fill ( anyelement, integer[] [, integer[] ] ) → anyarray\u003c/pre\u003e返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为\u003ccode\u003e1\u003c/code\u003e）。","SourceRevision":"1b5ca64c","ContentHash":"cc4ae763f984644ce53793567d70385e7d2d1305ce8ff50aea9d933244f06dda","Payload":{"description_zh":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为1）。","description_zh_html":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为\u003ccode class=\"literal\"\u003e1\u003c/code\u003e）。","signatures":[{"description_zh":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为1）。","description_zh_html":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为\u003ccode class=\"literal\"\u003e1\u003c/code\u003e）。","returns":"anyarray","text":"array_fill ( anyelement, integer[] [, integer[] ] ) → anyarray","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"76a37c6fd604f4fdedd544fd6b6a26074a3d27b38241484dcff57279ca2084ea","Text":"array_fill ( anyelement, integer[] [, integer[] ] ) → anyarray","Returns":"anyarray","Payload":{"description":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument. The optional third argument supplies lower-bound values for each dimension (which default to all 1).","description_html":"Returns an array filled with copies of the given value, having dimensions of the lengths specified by the second argument. The optional third argument supplies lower-bound values for each dimension (which default to all \u003ccode class=\"literal\"\u003e1\u003c/code\u003e).","description_zh":"","description_zh_html":"","examples":[{"expr":"array_fill(11, ARRAY[2,3])","result":"{{11,11,11},{11,11,11}}"},{"expr":"array_fill(7, ARRAY[3], ARRAY[2])","result":"[2:4]={7,7,7}"}],"html":"\u003ccode class=\"function\"\u003earray_fill\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e, \u003ccode class=\"type\"\u003einteger[]\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003ccode class=\"type\"\u003einteger[]\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003eanyarray\u003c/code\u003e","returns":"anyarray","text":"array_fill ( anyelement, integer[] [, integer[] ] ) → anyarray","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
