From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>, Kris Jurka <books(at)ejurka(dot)com> |
Subject: | Re: [PATCHES] [BUGS] casting strings to multidimensional arrays yields |
Date: | 2004-08-07 03:52:21 |
Message-ID: | 411451F5.6060200@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)com> writes:
>>select '{{},{}}'::text[];
>>ERROR: malformed array literal: "{{},{}}"
>
> Hm. This seems like it would be a legitimate representation of a 2x0
> array. Why would you allow '{}' and reject this?
I just reread your comment and thought about it more. I think most of
what I said in the last post holds, but in addition part of the problem
lies in the fact that we don't implement multidimensional arrays as
nested arrays, but rather as one monolithic structure. If we did the
former, then 2x0 would be feasible.
Investigating, and possibly implementing, multidimensional arrays as a
nested structure is another item on my wish list. I'm still not entirely
sure how difficult or desirable it is, but my interpretation of SQL99 is
that nested arrays is the requirement.
Joe
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-08-07 04:37:48 | Re: [PATCHES] [BUGS] casting strings to multidimensional arrays yields strange |
Previous Message | Joe Conway | 2004-08-07 03:19:35 | Re: [PATCHES] [BUGS] casting strings to multidimensional arrays yields |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-08-07 03:54:34 | Re: 8.0 beta status |
Previous Message | Bruce Momjian | 2004-08-07 03:34:45 | Re: Vacuum Cost Documentation? |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-08-07 04:37:48 | Re: [PATCHES] [BUGS] casting strings to multidimensional arrays yields strange |
Previous Message | Bruce Momjian | 2004-08-07 03:36:58 | Re: Minor BEFORE DELETE trigger fix |