From: Bryce Nesbitt <bryce1@obviously.com>
To: pgsql-sql@postgresql.org
Subject: Re: Delete with join -- deleting related table entries?
Date: Wed, 08 Feb 2006 09:33:22 -0800
Message-ID: <43EA2B62.8070504@obviously.com> (raw)
In-Reply-To: <1139419559.188208.72500@g43g2000cwa.googlegroups.com>
References: <43EA26E3.9040903@obviously.com>
<1139419559.188208.72500@g43g2000cwa.googlegroups.com>
BigSmoke wrote:
> ...I'd usually do this by using
> issue_id INTEGER REFERENCES issue ON DELETE CASCADE
>
Good, and valuable, thanks!
But at the moment I can't change the schema. So is there a way to do a
cascaded or joined delete
in a sql schema that did not anticipate it? Again, this is deleting
rows from three related tables, as a single atomic operation.
-Bryce
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: bryce1@obviously.com
Subject: Re: Delete with join -- deleting related table entries?
In-Reply-To: <43EA2B62.8070504@obviously.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