On Aug 11, 2010, at 11:35 AM, Andrew Dunstan wrote:
>> for i in select array_subscripts(myarray, 1) loop ...
>
> That's not a built-in function AFAIK.
Pavel pointed out to me only yesterday that it is:
http://www.postgresql.org/docs/current/static/functions-srf.html#FUNCTIONS-SRF-SUBSCRIPTS
Best,
david