X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A38B99DC81C for ; Fri, 3 Mar 2006 08:42:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42817-01 for ; Fri, 3 Mar 2006 08:42:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from r1.mycybernet.net (r1.mycybernet.net [209.5.206.8]) by postgresql.org (Postfix) with ESMTP id A18989DC878 for ; Fri, 3 Mar 2006 08:42:15 -0400 (AST) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227]:40340 helo=phlogiston.dydns.org) by r1.mycybernet.net with esmtp (Exim 4.50 (FreeBSD)) id 1FF9bu-000G4M-OK for pgsql-sql@postgresql.org; Fri, 03 Mar 2006 07:42:19 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id BCC953FAF; Fri, 3 Mar 2006 07:42:17 -0500 (EST) Date: Fri, 3 Mar 2006 07:42:17 -0500 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Help with trigger that updates a row prior to a potentially aborted deletion? Message-ID: <20060303124217.GB7057@phlogiston.dyndns.org> References: <20060302121943.GA7057@phlogiston.dyndns.org> <20060303001928.9C6B719B6A3@smtp03l.fasthosts.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060303001928.9C6B719B6A3@smtp03l.fasthosts.co.uk> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.081 required=5 tests=[AWL=0.081] X-Spam-Score: 0.081 X-Spam-Level: X-Archive-Number: 200603/72 X-Sequence-Number: 24418 On Fri, Mar 03, 2006 at 12:19:22AM -0000, Simon Kinsella wrote: > Hi Andrew, > > I think I may have cracked this problem by combining a RULE ON DELETE which > calls a function instead of the standard DELETE op. No triggers. It was a Ah. Yes, likely. Yeah, you can't do that. A -- Andrew Sullivan | ajs@crankycanuck.ca I remember when computers were frustrating because they *did* exactly what you told them to. That actually seems sort of quaint now. --J.D. Baldwin