array_length(anyarray) - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject array_length(anyarray)
Date
Msg-id 52B2054A.8010907@joh.to
Whole thread Raw
Responses Re: array_length(anyarray)
Re: array_length(anyarray)
List pgsql-hackers
Hi,

Attached is a patch to add support for array_length(anyarray), which
only works for one-dimensional arrays, returns 0 for empty arrays and
complains if the array's lower bound isn't 1.  In other words, does the
right thing when used with the arrays people use 99% of the time.

I'll add this to the next commit fest, but feel free to discuss it
before that.



Regards,
Marko Tiikkaja

Attachment

pgsql-hackers by date:

Previous
From: Dong Ye
Date:
Subject: Re: 9.3 regression with dbt2
Next
From: Kevin Grittner
Date:
Subject: Re: [PATCH] SQL assertions prototype