diff options
author | Bruce Momjian | 2008-07-16 00:48:54 +0000 |
---|---|---|
committer | Bruce Momjian | 2008-07-16 00:48:54 +0000 |
commit | 2c773296f88fe800315ca1bf131287662ecef999 (patch) | |
tree | 15ae3bf7473fcaadffd3b4400edcb55c5b728260 /doc/src | |
parent | 2fa42cc9ee599339bd109bed1a9e621a6d47c3c3 (diff) |
Add array_fill() to create arrays initialized with a value.
Pavel Stehule
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/func.sgml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 9bc051583dc..acd2b92918e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.440 2008/07/15 18:24:59 momjian Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.441 2008/07/16 00:48:53 momjian Exp $ --> <chapter id="functions"> <title>Functions and Operators</title> @@ -9374,6 +9374,19 @@ SELECT NULLIF(value, '(none)') ... <row> <entry> <literal> + <function>array_fill</function>(<type>anyelement</type>, <type>anyarray</type>, + <optional>, <type>anyarray</type></optional>) + </literal> + </entry> + <entry><type>anyarray</type></entry> + <entry>returns an array initialized with supplied value, + dimensions, and lower bounds</entry> + <entry><literal>array_fill(7, ARRAY[3], ARRAY[2])</literal></entry> + <entry><literal>[2:4]={7,7,7}</literal></entry> + </row> + <row> + <entry> + <literal> <function>array_lower</function>(<type>anyarray</type>, <type>int</type>) </literal> </entry> |