Re: array_length(anyarray) - Mailing list pgsql-hackers

From David Fetter
Subject Re: array_length(anyarray)
Date
Msg-id [email protected]
Whole thread Raw
In response to array_length(anyarray)  (Marko Tiikkaja <[email protected]>)
Responses Re: array_length(anyarray)
List pgsql-hackers
On Wed, Dec 18, 2013 at 09:27:54PM +0100, Marko Tiikkaja wrote:
> 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.

+1 for adding this.

Cheers,
David.
-- 
David Fetter <[email protected]> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: [email protected]
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate



pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: GIN improvements part 1: additional information
Next
From: Pavel Stehule
Date:
Subject: Re: array_length(anyarray)