Can I habe multi table indices? - Mailing list pgsql-general

From Andreas
Subject Can I habe multi table indices?
Date
Msg-id 54CF46EA.5080205@gmx.net
Whole thread Raw
Responses Re: Can I habe multi table indices?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-general
Hi,
can I habe multi table indices to ensure that certain IDs can only
appear in on relation?

Like

table_0(id int), table_1(id int), table_2(id int)
rel_1_to_0( id_1 int,  id_0 int )
rel_2_to_0( id_2 int,  id_0 int )

An id of table_0 should only exist either in rel_1_to_0 OR rel_2_to_0.


How can I do this?


regard
Andreas


pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: How do I bump a row to the front of sort efficiently
Next
From: William Gordon Rutherdale
Date:
Subject: Re: Problem with REFERENCES on INHERITS