From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: cnliou@eurosport.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Foreign Key Constraint Deletion Order
Date: Mon, 19 Nov 2001 01:26:08 -0800 (PST)
Message-ID: <20011119011353.M43437-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <200111190717.3b63@lh00.opsion.fr>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, cnliou@eurosport.com
Subject: Re: Foreign Key Constraint Deletion Order
In-Reply-To: <20011119011353.M43437-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox