Arrays and constraints

Поиск
Список
Период
Сортировка
От Daniel Savard
Тема Arrays and constraints
Дата
Msg-id 1098821097.17331.9.camel@dirac.cids.ca
обсуждение исходный текст
Список pgsql-general
I would like to know if there is a way to define a constraint for the
values of an array type?

For example, if I define a table where column A is an integer[] and each
value must be an index to an element in another table. How can I do this
without the help of a third table holding relations between objects?

Is it possible? Is there any shortcomings doing things this way?

--

=======================================
Daniel Savard
=======================================



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

Предыдущее
От: Karim Nassar
Дата:
Сообщение: Re: Duplicating a database
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Bug or stupidity