@@ -1756,7 +1756,7 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
1756
1756
1757
1757
<row>
1758
1758
<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> )
1760
1760
<returnvalue>integer</returnvalue>
1761
1761
</para>
1762
1762
<para>
@@ -17448,29 +17448,31 @@ SELECT NULLIF(value, '(none)') ...
17448
17448
17449
17449
<row>
17450
17450
<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>
17453
17453
</para>
17454
17454
<para>
17455
17455
Concatenates the two arrays. Concatenating a null or empty array is a
17456
17456
no-op; otherwise the arrays must have the same number of dimensions
17457
17457
(as illustrated by the first example) or differ in number of
17458
17458
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"/>).
17459
17461
</para>
17460
17462
<para>
17461
17463
<literal>ARRAY[1,2,3] || ARRAY[4,5,6,7]</literal>
17462
17464
<returnvalue>{1,2,3,4,5,6,7}</returnvalue>
17463
17465
</para>
17464
17466
<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>
17467
17469
</para></entry>
17468
17470
</row>
17469
17471
17470
17472
<row>
17471
17473
<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>
17474
17476
</para>
17475
17477
<para>
17476
17478
Concatenates an element onto the front of an array (which must be
@@ -17484,8 +17486,8 @@ SELECT NULLIF(value, '(none)') ...
17484
17486
17485
17487
<row>
17486
17488
<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>
17489
17491
</para>
17490
17492
<para>
17491
17493
Concatenates an element onto the end of an array (which must be
@@ -17535,12 +17537,12 @@ SELECT NULLIF(value, '(none)') ...
17535
17537
<indexterm>
17536
17538
<primary>array_append</primary>
17537
17539
</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>
17540
17542
</para>
17541
17543
<para>
17542
17544
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>
17544
17546
operator).
17545
17547
</para>
17546
17548
<para>
@@ -17554,12 +17556,12 @@ SELECT NULLIF(value, '(none)') ...
17554
17556
<indexterm>
17555
17557
<primary>array_cat</primary>
17556
17558
</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>
17559
17561
</para>
17560
17562
<para>
17561
17563
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>
17563
17565
operator).
17564
17566
</para>
17565
17567
<para>
@@ -17666,7 +17668,7 @@ SELECT NULLIF(value, '(none)') ...
17666
17668
<indexterm>
17667
17669
<primary>array_position</primary>
17668
17670
</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> )
17670
17672
<returnvalue>integer</returnvalue>
17671
17673
</para>
17672
17674
<para>
@@ -17688,7 +17690,7 @@ SELECT NULLIF(value, '(none)') ...
17688
17690
<indexterm>
17689
17691
<primary>array_positions</primary>
17690
17692
</indexterm>
17691
- <function>array_positions</function> ( <type>anyarray </type>, <type>anyelement </type> )
17693
+ <function>array_positions</function> ( <type>anycompatiblearray </type>, <type>anycompatible </type> )
17692
17694
<returnvalue>integer[]</returnvalue>
17693
17695
</para>
17694
17696
<para>
@@ -17712,12 +17714,12 @@ SELECT NULLIF(value, '(none)') ...
17712
17714
<indexterm>
17713
17715
<primary>array_prepend</primary>
17714
17716
</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>
17717
17719
</para>
17718
17720
<para>
17719
17721
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>
17721
17723
operator).
17722
17724
</para>
17723
17725
<para>
@@ -17731,8 +17733,8 @@ SELECT NULLIF(value, '(none)') ...
17731
17733
<indexterm>
17732
17734
<primary>array_remove</primary>
17733
17735
</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>
17736
17738
</para>
17737
17739
<para>
17738
17740
Removes all elements equal to the given value from the array.
@@ -17751,8 +17753,8 @@ SELECT NULLIF(value, '(none)') ...
17751
17753
<indexterm>
17752
17754
<primary>array_replace</primary>
17753
17755
</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>
17756
17758
</para>
17757
17759
<para>
17758
17760
Replaces each array element equal to the second argument with the
0 commit comments