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

From David Fetter
Subject Re: array_length(anyarray)
Date
Msg-id 20131219080202.GA6355@fetter.org
Whole thread Raw
In response to array_length(anyarray)  (Marko Tiikkaja <marko@joh.to>)
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 <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
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)