Re: A transaction in transaction? Possible?
| От | Stefan Weiss |
|---|---|
| Тема | Re: A transaction in transaction? Possible? |
| Дата | |
| Msg-id | 200411112031.27766.spaceman@foo.at обсуждение исходный текст |
| Ответ на | Re: A transaction in transaction? Possible? (Gaetano Mendola <mendola@bigfoot.com>) |
| Список | pgsql-sql |
On Thursday, 11 November 2004 09:23, Gaetano Mendola wrote: > Stefan Weiss wrote: > > These tables are connected by foreign keys, but without "on delete" > > triggers. > > Why "without" ? Are you looking to solve a problem introduced by > yourself ? There are numerous checks involved before a customer (or a contact) can be deleted, and not all of these checks can be done by querying the database. Sometimes triggers aren't enough. > You can handle this task using the new functionality introduced with > savepoint: the exception. For more information look at: > http://candle.pha.pa.us/main/writings/pgsql/sgml/plpgsql-control-structures >.html#PLPGSQL-ERROR-TRAPPING The "delete contact" and "delete customer" functions are not stored procedures, so I'm not sure how this can help. thanks, stefan
В списке pgsql-sql по дате отправления: