@@ -1756,7 +1756,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
17561756
17571757 <row>
17581758 <entry role="func_table_entry"><para role="func_signature">
1759- <function>width_bucket</function> ( <parameter>operand</parameter> <type>anyelement </type>, <parameter>thresholds</parameter> <type>anyarray </type> )
1759+ <function>width_bucket</function> ( <parameter>operand</parameter> <type>anycompatible </type>, <parameter>thresholds</parameter> <type>anycompatiblearray </type> )
17601760 <returnvalue>integer</returnvalue>
17611761 </para>
17621762 <para>
@@ -17448,29 +17448,31 @@ SELECT NULLIF(value, '(none)') ...
1744817448
1744917449 <row>
1745017450 <entry role="func_table_entry"><para role="func_signature">
17451- <type>anyarray </type> <literal>||</literal> <type>anyarray </type>
17452- <returnvalue>anyarray </returnvalue>
17451+ <type>anycompatiblearray </type> <literal>||</literal> <type>anycompatiblearray </type>
17452+ <returnvalue>anycompatiblearray </returnvalue>
1745317453 </para>
1745417454 <para>
1745517455 Concatenates the two arrays. Concatenating a null or empty array is a
1745617456 no-op; otherwise the arrays must have the same number of dimensions
1745717457 (as illustrated by the first example) or differ in number of
1745817458 dimensions by one (as illustrated by the second).
17459+ If the arrays are not of identical element types, they will be coerced
17460+ to a common type (see <xref linkend="typeconv-union-case"/>).
1745917461 </para>
1746017462 <para>
1746117463 <literal>ARRAY[1,2,3] || ARRAY[4,5,6,7]</literal>
1746217464 <returnvalue>{1,2,3,4,5,6,7}</returnvalue>
1746317465 </para>
1746417466 <para>
17465- <literal>ARRAY[1,2,3] || ARRAY[[4,5,6],[7,8,9]]</literal>
17466- <returnvalue>{{1,2,3},{4,5,6},{7,8,9}}</returnvalue>
17467+ <literal>ARRAY[1,2,3] || ARRAY[[4,5,6],[7,8,9.9 ]]</literal>
17468+ <returnvalue>{{1,2,3},{4,5,6},{7,8,9.9 }}</returnvalue>
1746717469 </para></entry>
1746817470 </row>
1746917471
1747017472 <row>
1747117473 <entry role="func_table_entry"><para role="func_signature">
17472- <type>anyelement </type> <literal>||</literal> <type>anyarray </type>
17473- <returnvalue>anyarray </returnvalue>
17474+ <type>anycompatible </type> <literal>||</literal> <type>anycompatiblearray </type>
17475+ <returnvalue>anycompatiblearray </returnvalue>
1747417476 </para>
1747517477 <para>
1747617478 Concatenates an element onto the front of an array (which must be
@@ -17484,8 +17486,8 @@ SELECT NULLIF(value, '(none)') ...
1748417486
1748517487 <row>
1748617488 <entry role="func_table_entry"><para role="func_signature">
17487- <type>anyarray </type> <literal>||</literal> <type>anyelement </type>
17488- <returnvalue>anyarray </returnvalue>
17489+ <type>anycompatiblearray </type> <literal>||</literal> <type>anycompatible </type>
17490+ <returnvalue>anycompatiblearray </returnvalue>
1748917491 </para>
1749017492 <para>
1749117493 Concatenates an element onto the end of an array (which must be
@@ -17535,12 +17537,12 @@ SELECT NULLIF(value, '(none)') ...
1753517537 <indexterm>
1753617538 <primary>array_append</primary>
1753717539 </indexterm>
17538- <function>array_append</function> ( <type>anyarray </type>, <type>anyelement </type> )
17539- <returnvalue>anyarray </returnvalue>
17540+ <function>array_append</function> ( <type>anycompatiblearray </type>, <type>anycompatible </type> )
17541+ <returnvalue>anycompatiblearray </returnvalue>
1754017542 </para>
1754117543 <para>
1754217544 Appends an element to the end of an array (same as
17543- the <type>anyarray </type> <literal>||</literal> <type>anyelement </type>
17545+ the <type>anycompatiblearray </type> <literal>||</literal> <type>anycompatible </type>
1754417546 operator).
1754517547 </para>
1754617548 <para>
@@ -17554,12 +17556,12 @@ SELECT NULLIF(value, '(none)') ...
1755417556 <indexterm>
1755517557 <primary>array_cat</primary>
1755617558 </indexterm>
17557- <function>array_cat</function> ( <type>anyarray </type>, <type>anyarray </type> )
17558- <returnvalue>anyarray </returnvalue>
17559+ <function>array_cat</function> ( <type>anycompatiblearray </type>, <type>anycompatiblearray </type> )
17560+ <returnvalue>anycompatiblearray </returnvalue>
1755917561 </para>
1756017562 <para>
1756117563 Concatenates two arrays (same as
17562- the <type>anyarray </type> <literal>||</literal> <type>anyarray </type>
17564+ the <type>anycompatiblearray </type> <literal>||</literal> <type>anycompatiblearray </type>
1756317565 operator).
1756417566 </para>
1756517567 <para>
@@ -17666,7 +17668,7 @@ SELECT NULLIF(value, '(none)') ...
1766617668 <indexterm>
1766717669 <primary>array_position</primary>
1766817670 </indexterm>
17669- <function>array_position</function> ( <type>anyarray </type>, <type>anyelement </type> <optional>, <type>integer</type> </optional> )
17671+ <function>array_position</function> ( <type>anycompatiblearray </type>, <type>anycompatible </type> <optional>, <type>integer</type> </optional> )
1767017672 <returnvalue>integer</returnvalue>
1767117673 </para>
1767217674 <para>
@@ -17688,7 +17690,7 @@ SELECT NULLIF(value, '(none)') ...
1768817690 <indexterm>
1768917691 <primary>array_positions</primary>
1769017692 </indexterm>
17691- <function>array_positions</function> ( <type>anyarray </type>, <type>anyelement </type> )
17693+ <function>array_positions</function> ( <type>anycompatiblearray </type>, <type>anycompatible </type> )
1769217694 <returnvalue>integer[]</returnvalue>
1769317695 </para>
1769417696 <para>
@@ -17712,12 +17714,12 @@ SELECT NULLIF(value, '(none)') ...
1771217714 <indexterm>
1771317715 <primary>array_prepend</primary>
1771417716 </indexterm>
17715- <function>array_prepend</function> ( <type>anyelement </type>, <type>anyarray </type> )
17716- <returnvalue>anyarray </returnvalue>
17717+ <function>array_prepend</function> ( <type>anycompatible </type>, <type>anycompatiblearray </type> )
17718+ <returnvalue>anycompatiblearray </returnvalue>
1771717719 </para>
1771817720 <para>
1771917721 Prepends an element to the beginning of an array (same as
17720- the <type>anyelement </type> <literal>||</literal> <type>anyarray </type>
17722+ the <type>anycompatible </type> <literal>||</literal> <type>anycompatiblearray </type>
1772117723 operator).
1772217724 </para>
1772317725 <para>
@@ -17731,8 +17733,8 @@ SELECT NULLIF(value, '(none)') ...
1773117733 <indexterm>
1773217734 <primary>array_remove</primary>
1773317735 </indexterm>
17734- <function>array_remove</function> ( <type>anyarray </type>, <type>anyelement </type> )
17735- <returnvalue>anyarray </returnvalue>
17736+ <function>array_remove</function> ( <type>anycompatiblearray </type>, <type>anycompatible </type> )
17737+ <returnvalue>anycompatiblearray </returnvalue>
1773617738 </para>
1773717739 <para>
1773817740 Removes all elements equal to the given value from the array.
@@ -17751,8 +17753,8 @@ SELECT NULLIF(value, '(none)') ...
1775117753 <indexterm>
1775217754 <primary>array_replace</primary>
1775317755 </indexterm>
17754- <function>array_replace</function> ( <type>anyarray </type>, <type>anyelement </type>, <type>anyelement </type> )
17755- <returnvalue>anyarray </returnvalue>
17756+ <function>array_replace</function> ( <type>anycompatiblearray </type>, <type>anycompatible </type>, <type>anycompatible </type> )
17757+ <returnvalue>anycompatiblearray </returnvalue>
1775617758 </para>
1775717759 <para>
1775817760 Replaces each array element equal to the second argument with the
0 commit comments