Re: Enforcing Join condition - Mailing list pgsql-general

From சிவகுமார் மா
Subject Re: Enforcing Join condition
Date
Msg-id 139e14f00711150619i7ab7d31bkd8d7c9d6eacb45cb@mail.gmail.com
Whole thread Raw
In response to Re: Enforcing Join condition  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: Enforcing Join condition  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-general
On Nov 15, 2007 7:32 PM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:
>
> You want to have a "conditional" foreign key reference that checks
> against different tables depending on a "type" field, right?
>
> For complicated conditions like this, you could use a
> BEFORE INSERT trigger that throws an error when the condition
> is violated.

That we do. My query is to put a check on select queries to avoid
programmers not using all the necessary conditions.

Thanks and regards,
Ma Sivakumar


--
மா சிவகுமார்
எல்லோரும் எல்லாமும் பெற வேண்டும்
http://masivakumar.blogspot.com

pgsql-general by date:

Previous
From: "Abraham, Danny"
Date:
Subject: Re: Chunk Delete
Next
From: "Albe Laurenz"
Date:
Subject: Re: Enforcing Join condition