X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 54397D1B380 for ; Fri, 25 Jun 2004 04:43:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45611-04 for ; Fri, 25 Jun 2004 07:43:31 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 06B2BD1B7CC for ; Fri, 25 Jun 2004 04:43:29 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i5P7hRQC091713 for ; Fri, 25 Jun 2004 07:43:27 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i5P7G421085066 for pgsql-sql@postgresql.org; Fri, 25 Jun 2004 07:16:04 GMT From: "Jan Norman Pedersen" X-Newsgroups: comp.databases.postgresql.sql References: <20040519104830.J85664@megazone.bigpanda.com> Subject: Re: rules Date: Fri, 25 Jun 2004 09:16:58 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Lines: 26 Message-ID: <40dbd135$0$223$edfadb0f@dread11.news.tele.dk> Organization: TDC Totalloesninger X-Complaints-To: abuse@post.tele.dk To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=PRIORITY_NO_NAME X-Spam-Level: X-Archive-Number: 200407/1 X-Sequence-Number: 18253 Anslag "Stephan Szabo" wrote in message news:20040519104830.J85664@megazone.bigpanda.com... > On Wed, 19 May 2004, Jie Liang wrote: > > > According to the document of rule: > > > > CREATE RULE rulename AS ON delete TO mytablename DO > > ( > > delete from aaa where id=OLD.id; > > Delete from bbb where id=OLD.id; > > Delete from ccc where id=OLD.id > > ); > > > > > > Should work, but it doesn't, what wrong with it? > > What is it doing and what version is this on? > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >