Doc: correct nitpicky mistakes in array_position/array_positions examples.

Daniel Gustafsson and Erik Rijkers, per report from nick@cleaton

Discussion: https://postgr.es/m/159275646273.679.16940709892308114570@wrigleys.postgresql.org
This commit is contained in:
Tom Lane 2020-06-25 13:28:30 -04:00
parent a82ba066ea
commit 463b808e75
1 changed files with 5 additions and 3 deletions

View File

@ -669,14 +669,16 @@ SELECT * FROM sal_emp WHERE pay_by_quarter && ARRAY[10000];
<programlisting>
SELECT array_position(ARRAY['sun','mon','tue','wed','thu','fri','sat'], 'mon');
array_positions
-----------------
2
array_position
----------------
2
(1 row)
SELECT array_positions(ARRAY[1, 4, 3, 1, 3, 4, 2, 1], 1);
array_positions
-----------------
{1,4,8}
(1 row)
</programlisting>
</para>