From: Peter Eisentraut Date: Thu, 6 Jan 2011 21:31:20 +0000 (+0200) Subject: Improve array_upper example X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f9e4961b7d599ff42accf324a3c080c5095785c9;p=users%2Fhanada%2Fpostgres.git 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