Re: Foreign Key Constraint Deletion Order

Поиск
Список
Период
Сортировка
Искать
От
Stephan Szabo
Тема
Re: Foreign Key Constraint Deletion Order
Дата
Msg-id
20011119011353.M43437-100000@megazone23.bigpanda.com
Ответ на
Список
Дерево обсуждения
Re: Foreign Key Constraint Deletion Order <cnliou@eurosport.com>
Re: Foreign Key Constraint Deletion Order Stephan Szabo <sszabo@megazone23.bigpanda.com>
Re: Foreign Key Constraint Deletion Order Tom Lane <tgl@sss.pgh.pa.us>
Re: Foreign Key Constraint Deletion Order Stephan Szabo <sszabo@megazone23.bigpanda.com>
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 по дате отправления
От: Jean-Christophe Boggio
Дата:
Сообщение: Re: Optimization with dates
От: Gurudutt
Дата:
Сообщение: PqReadData()
FAQ