number of dimensions of a multi-dimensional array - Mailing list pgsql-general

From &ru
Subject number of dimensions of a multi-dimensional array
Date
Msg-id a2c1cdef0512010515ob1b04a0v@mail.gmail.com
Whole thread Raw
Responses Re: number of dimensions of a multi-dimensional array
List pgsql-general
Hi!

I am developing pl/pgsql functions with multi-dimensional array input
parameter.
I can use array_dims(), but it gives just the text representation of
the structure and it is not suitable when I want to iterate over the
whole array with the array_lower() and array_upper() functions. I want
to handle custom dimension/size arrays.
So my question is, how can I easily determine the number of the
dimensions of an array?

Thanks,
Andrew

pgsql-general by date:

Previous
From: Tim Bunce
Date:
Subject: Re: undefined behaviour for sub-transactions?
Next
From: marcelo Cortez
Date:
Subject: Re: encoding problem