Re: Enforcing Join condition

From: சிவகுமார் மா <masivakumar(at)gmail(dot)com>
To: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Enforcing Join condition
Date: 2007-11-15 14:19:18
Message-ID: 139e14f00711150619i7ab7d31bkd8d7c9d6eacb45cb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Nov 15, 2007 7:32 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lew 2007-11-15 14:20:42 Re: Query Performance Test
Previous Message Abraham, Danny 2007-11-15 14:18:27 Re: Chunk Delete