Re: About the behavior of array_length() for empty array

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: iihero <iihero(at)qq(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: About the behavior of array_length() for empty array
Date: 2012-04-09 13:50:59
Message-ID: CA+Tgmob29VhwqYmnP3dHp=OCHeP37Cxovv0LsOvT99qQHO6y2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 5, 2012 at 8:35 PM, iihero <iihero(at)qq(dot)com> wrote:
> From this point of view, seems N dimensions of empty array all are
> equivalent.

Yes. It's effectively viewed as a 0-dimensional array.

> Is there standard definition of this behavior?

No. Multi-dimensional arrays are a PostgreSQL extension.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-04-09 13:59:28 Re: Potential for bugs while using COPY_POINTER_FIELD to copy NULL pointer
Previous Message Adrian Klaver 2012-04-09 13:49:25 Re: [streaming replication] 9.1.3 streaming replication bug ?