check constraint - Mailing list pgsql-general

From erwan ancel
Subject check constraint
Date
Msg-id 1054543920.5523.8.camel@brisedorient
Whole thread Raw
Responses Re: check constraint  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
Hi,
I would like to know if it is possible to set "complex" constraints on
databases such as:

A->B means that in table A, each record references a record of table B
(or NULL)

so we have:

A->B
C->B
D->C
D->A
constraint: for one record of D, D->A->B = D->C->B

    Hope it is clear enough.

    Erwan



pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: PostgreSQL presentation in France
Next
From: Csaba Nagy
Date:
Subject: Re: implicit abort harmful?