Re: Number of dimensions of an array parameter - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Number of dimensions of an array parameter
Date
Msg-id 27770.1147106919@sss.pgh.pa.us
Whole thread Raw
In response to Number of dimensions of an array parameter  (Thomas Hallgren <thomas@tada.se>)
List pgsql-hackers
Thomas Hallgren <thomas@tada.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


pgsql-hackers by date:

Previous
From: Thomas Hallgren
Date:
Subject: Number of dimensions of an array parameter
Next
From: Thomas Hallgren
Date:
Subject: Re: Number of dimensions of an array parameter