Improve array_upper example

The previous example didn't make it clear whether array_upper returned
the last element or the index of the last element.
This commit is contained in:
Peter Eisentraut 2011-01-06 23:31:20 +02:00
parent 6c596c29a3
commit f9e4961b7d

View File

@ -10361,7 +10361,7 @@ SELECT NULLIF(value, '(none)') ...
</entry>
<entry><type>int</type></entry>
<entry>returns upper bound of the requested array dimension</entry>
<entry><literal>array_upper(ARRAY[1,2,3,4], 1)</literal></entry>
<entry><literal>array_upper(ARRAY[1,8,3,7], 1)</literal></entry>
<entry><literal>4</literal></entry>
</row>
<row>