{"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","derived_content_hash":"4c1080ab7475bf95aa469752d45d11410d2810b1ac0b3acb8be79a5565b18a3a","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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"9b714e8f61d6831697eae7bebe4ba47ddad0ace8eceb3e3851d1e6f8479db416","repair":"wiki-repair-20261023"},"signature":"array_fill ( anyelement, integer[] [, integer[] ] ) → anyarray","signature_count":1,"slug":"array-fill","source_rev":"wiki-repair-20261023:874cb5a99087aab770617ae585e63f145681d8126cdf2d47e2e279be677b3dd9","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":"wiki-repair-20261023:874cb5a99087aab770617ae585e63f145681d8126cdf2d47e2e279be677b3dd9","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":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 1）。","description_zh_html":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 \u003ccode class=\"literal\"\u003e1\u003c/code\u003e）。","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":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 1）。","description_zh_html":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 \u003ccode class=\"literal\"\u003e1\u003c/code\u003e）。","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":"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-fill","SourceDatabase":"center","Version":"18","Locale":"en","Title":"array_fill","Summary":"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).","BodyHTML":"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\u003e1\u003c/code\u003e).","SourceRevision":"wiki-repair-20261023:874cb5a99087aab770617ae585e63f145681d8126cdf2d47e2e279be677b3dd9","ContentHash":"8fa52ebf49872ce45bea917eebad7434fc2b98c26dee384078b7b5f3a521410e","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).","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":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 1）。","description_zh_html":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 \u003ccode class=\"literal\"\u003e1\u003c/code\u003e）。","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":"same-version-pgdoc"}]}},"RequestedLocale":"en","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":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 1）。","description_zh_html":"返回用给定值的副本填充的数组，各维的长度由第二个参数指定。可选的第三个参数提供各维的下界值（默认均为 \u003ccode class=\"literal\"\u003e1\u003c/code\u003e）。","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":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
