| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Thomas Hallgren <thomas(at)tada(dot)se> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Number of dimensions of an array parameter |
| Date: | 2006-05-08 16:48:39 |
| Message-ID: | 27770.1147106919@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Thomas Hallgren <thomas(at)tada(dot)se> writes:
> Only allow arrays with one dimension unless the parameter is of a domain
> type (domains are apparently stored with the actual number of
> dimensions).
No, they don't enforce dimensionality any more than ordinary array
columns do. typndims and attndims are both effectively just booleans:
is it an array or not?
> IMO, there is something seriously wrong here. Clearly the number of
> dimensions is a property of the type.
[ shrug... ] That's debatable. You could just as well argue that the
exact array size should be enforced by the type system.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stefan Kaltenbrunner | 2006-05-08 17:17:56 | Re: Number of dimensions of an array parameter |
| Previous Message | Thomas Hallgren | 2006-05-08 16:33:56 | Number of dimensions of an array parameter |