On Mar 15, 2013, at 3:07 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The thing is that that syntax creates an array of zero dimensions,
> not one that has 1 dimension and zero elements. So "0" would be
> incorrect.
>
> Our handling of empty arrays leaves something to be desired, I agree,
> but making it more consistent seems like a large task. Hacking
> array_length in isolation will certainly not help.
Oh. Is there a way to declare an empty 1-dimension array?
Thanks,
David