Re: A transaction in transaction? Possible? - Mailing list pgsql-sql

From Stefan Weiss
Subject Re: A transaction in transaction? Possible?
Date
Msg-id 200411112031.27766.spaceman@foo.at
Whole thread Raw
In response to Re: A transaction in transaction? Possible?  (Gaetano Mendola <mendola@bigfoot.com>)
List 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 by date:

Previous
From: "David B"
Date:
Subject: Re: Unicode problem inserting records - Invalid UNICODE character
Next
From: Richard Huxton
Date:
Subject: Re: Unicode problem inserting records - Invalid UNICODE character