Re: Postgres doesn't seem to enforce array dimensions

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Postgres doesn't seem to enforce array dimensions
Дата
Msg-id 1270769771.8305.999.camel@ebony
обсуждение исходный текст
Ответ на Re: Postgres doesn't seem to enforce array dimensions  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-general
On Thu, 2010-04-08 at 11:02 -0700, Jeff Davis wrote:

> The current implementation does not enforce the declared number of
> dimensions either. Arrays of a particular element type are all
> considered to be of the same type, regardless of size or number of
> dimensions. So, declaring the array size or number of dimensions in
> CREATE TABLE is simply documentation; it does not affect run-time
> behavior.

And if you don't like that, use a CHECK constraint to enforce whatever
rule you think appropriate. All, some or none: your choice. Cool.

--
 Simon Riggs           www.2ndQuadrant.com


В списке pgsql-general по дате отправления:

Предыдущее
От: sunpeng
Дата:
Сообщение: when i logged in mydb,any sql command used to list all the tables in this mydb?
Следующее
От: Diego Schulz
Дата:
Сообщение: Re: when i logged in mydb,any sql command used to list all the tables in this mydb?