array

array_upper

Reads the upper subscript, which is not necessarily the number of elements.

Formal Syntax & Structure

sql syntaxsql
array_upper(array, dimension)

Working Example

Example Snippetsql
SELECT array_upper('[0:2]={4,8,12}'::int[],1);
SQL Reference