Re: possible to DELETE CASCADE? - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: possible to DELETE CASCADE?
Date
Msg-id 20041230210751.GA28934@wolff.to
Whole thread Raw
In response to Re: possible to DELETE CASCADE?  (Miles Keaton <mileskeaton@gmail.com>)
List pgsql-general
On Thu, Dec 30, 2004 at 11:40:21 -0800,
  Miles Keaton <mileskeaton@gmail.com> wrote:
> On Thu, 30 Dec 2004 11:10:38 -0800, I wrote:
> > Is it possible for a query to delete a record and all of its
> > foreign-key dependents?
>
>
> Sorry - to be more clear : I like having my foreign keys RESTRICT from
> this kind of cascading happening automatically or accidently.
>
> So I'm looking for a query that could force it to happen, if truly intended.


Patient: Doctor, it hurts when I do this.
Doctor: Then stop doing that.

Maybe you should only allow a special account to be able to delete from
the parent table and control access to that special account. Depending
on what kind of accidents you are trying to prevent, this may help.

pgsql-general by date:

Previous
From: Timothy Perrigo
Date:
Subject: syntax for inserting unicode character literal
Next
From: "Prasad Duggineni"
Date:
Subject: postgresql 8.0 rc1