Received: from oscar.eng.cv.net (oscar.eng.cv.net [167.206.9.141]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBT45qm43088 for ; Fri, 28 Dec 2001 23:05:53 -0500 (EST) (envelope-from marc@oscar.eng.cv.net) Received: (from marc@localhost) by oscar.eng.cv.net (8.11.6/8.11.6) id fBT45P415829 for pgsql-sql@postgresql.org; Fri, 28 Dec 2001 23:05:25 -0500 (EST) (envelope-from marc) Date: Fri, 28 Dec 2001 23:05:25 -0500 From: Marc Spitzer To: pgsql-sql@postgresql.org Subject: Re: Begin/Commit Message-ID: <20011228230525.A15809@oscar.eng.cv.net> References: <20011228222730.555C0197395@jamie.edmonton.computalog.com> <16091.1009585573@sss.pgh.pa.us> <20011228204717.A15342@oscar.eng.cv.net> <16729.1009598068@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <16729.1009598068@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Fri, Dec 28, 2001 at 10:54:28PM -0500 X-Archive-Number: 200112/259 X-Sequence-Number: 6081 On Fri, Dec 28, 2001 at 10:54:28PM -0500, Tom Lane wrote: > Marc Spitzer writes: > > Would one of these conditions include deleting a row where there is > > a field that is used as a foreign-key in another table? > > [ thinks ... ] Yes, I think so. The cases I'm familiar with involve > inserts and updates, but probably a delete on the referenced table would > fire triggers as well. With enough pending triggers, 7.0 and 7.1 will > get slow. See discussions of 'triggered data change violation' error > in the archives. > > regards, tom lane Thanks, That explains a problem I had deleteing around 33,000 rows. I let it run for a couple of hours and it did not work. I finaly had to select all the primary keys of the rows I wanted to delete and delete the rows one at a time, it was doing about 120 rows/min. Is this fixed in 7.2 ? Thanks again marc