From: | "David E(dot) Wheeler" <david(at)justatheory(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-hackers(at)postgresql(dot)org Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Should array_length() Return NULL |
Date: | 2013-03-15 23:06:38 |
Message-ID: | A7FB8F72-9D87-4314-B359-5874215EBB2B@justatheory.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mar 15, 2013, at 3:42 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Oh. Is there a way to declare an empty 1-dimension array?
>
> Doesn't look like it:
>
> regression=# select '[1:0]={}'::text[];
> ERROR: upper bound cannot be less than lower bound
> LINE 1: select '[1:0]={}'::text[];
> ^
>
> Possibly we should allow that, but just as with the other point, it
> would require some thought and investigation to make sure we weren't
> creating more problems than we solved.
Right, okay. I added a link to your email to https://wiki.postgresql.org/wiki/Todo#Arrays. Looks like better dealing with empty arrays was already on the list, including this gem:
http://www.postgresql.org/message-id/28026.1224611437@sss.pgh.pa.us
Thanks,
David
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2013-03-16 01:16:53 | Re: Materialized view assertion failure in HEAD |
Previous Message | Dimitri Fontaine | 2013-03-15 22:59:07 | Re: in-catalog Extension Scripts and Control parameters (templates?) |