Re: Foreign Key Constraint Deletion Order - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Foreign Key Constraint Deletion Order
Date
Msg-id 20011119011353.M43437-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Foreign Key Constraint Deletion Order  (<cnliou@eurosport.com>)
List pgsql-sql
On Mon, 19 Nov 2001 cnliou@eurosport.com wrote:

> Then I am in big big trouble! Please imagine a very
> usual scenario:
> [example snipped]

I think you can do this as part of a trigger on PurchaseMaster and
something that doesn't do the subtraction if the subselect returns
a NULL in the detail trigger (or subtracts 0), not as pretty, but
it should function.  The master trigger would subtract as necessary
for the details for the user.




pgsql-sql by date:

Previous
From: Jean-Christophe Boggio
Date:
Subject: Re: Optimization with dates
Next
From: Gurudutt
Date:
Subject: PqReadData()