Re: Should array_length() Return NULL - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Should array_length() Return NULL
Date
Msg-id 1182.1363387349@sss.pgh.pa.us
Whole thread Raw
In response to Re: Should array_length() Return NULL  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: Should array_length() Return NULL  ("David E. Wheeler" <david@justatheory.com>)
List pgsql-hackers
"David E. Wheeler" <david@justatheory.com> writes:
> 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.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Materialized view assertion failure in HEAD
Next
From: Dimitri Fontaine
Date:
Subject: Re: in-catalog Extension Scripts and Control parameters (templates?)