Re: Check Constraints and pg_dump - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: Check Constraints and pg_dump
Date
Msg-id 20040302170921.GB27448@wolff.to
Whole thread Raw
In response to Re: Check Constraints and pg_dump  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-hackers
On Tue, Mar 02, 2004 at 09:45:03 -0500, Robert Treat <xzilla@users.sourceforge.net> wrote:
> 
> Wouldn't a FK on both tables be the appropriate schema?  With the FK on 
> contract being deffered?

No, since he only cares that there is at least one plan for a contract,
not a particular plan. You can do something like this as a hack where
when the plan referenced by the contract gets deleted that the contract
has to be changed to reference another plan or be deleted. But I think
using triggers is a better way to do this.


pgsql-hackers by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: [PATCHES] Foreign key type checking patch
Next
From: Fabien COELHO
Date:
Subject: Re: [PATCHES] Foreign key type checking patch