From: Peter Eisentraut Date: Thu, 6 Jan 2011 21:31:20 +0000 (+0200) Subject: Improve array_upper example X-Git-Tag: REL9_1_ALPHA4~514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9e4961b7d599ff42accf324a3c080c5095785c9;p=postgresql 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. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index d1777759e6..9ad4ad8d9e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10361,7 +10361,7 @@ SELECT NULLIF(value, '(none)') ... int returns upper bound of the requested array dimension - array_upper(ARRAY[1,2,3,4], 1) + array_upper(ARRAY[1,8,3,7], 1) 4