Arrays and constraints - Mailing list pgsql-general

From Daniel Savard
Subject Arrays and constraints
Date
Msg-id 1098821097.17331.9.camel@dirac.cids.ca
Whole thread Raw
List 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 by date:

Previous
From: Karim Nassar
Date:
Subject: Re: Duplicating a database
Next
From: Thomas Hallgren
Date:
Subject: Re: Bug or stupidity