From: Robert Treat <xzilla@users.sourceforge.net>
To: pgsql-admin@postgresql.org
Cc: Mauri Sahlberg <Mauri.Sahlberg@claymountain.com>
Subject: Re: Stupid question about triggers
Date: Sat, 10 Sep 2005 12:22:49 -0400
Message-ID: <200509101222.50119.xzilla@users.sourceforge.net> (raw)
In-Reply-To: <43218C15.1070704@claymountain.com>
References: <43218C15.1070704@claymountain.com>
On Friday 09 September 2005 09:20, Mauri Sahlberg wrote:
> Hi,
>
> I have found myself in a situation where I need to quickly delete rows
> from a production database. Unfortunately table for the rows to be
> deleted have triggers which results massive chain of update operations
> on other tables. I do not wish those to happen as I'm about to delete
> concerned rows from the other tables as well. (7.4.7)
>
<snip>
Your proposed syntax looks about correct, though I'd suggest trying on a test
system first if possible. I would caution though that this type of hacking
about is going to break any referential integrity your database once had with
this data.
If you really are going to be deleting data that has a bunch of related data
in other tables, istm that that should be handled by some foriegn keys, so
I'm a bit suspicious of your db schema based on this email. Just my .02.
--
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: xzilla@users.sourceforge.net, Mauri.Sahlberg@claymountain.com
Subject: Re: Stupid question about triggers
In-Reply-To: <200509101222.50119.xzilla@users.sourceforge.net>
References: <43218C15.1070704@claymountain.com> <200509101222.50119.xzilla@users.sourceforge.net>
* 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