Re: Help with RULE - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Help with RULE
Date
Msg-id 20011115070711.Y7025-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Help with RULE  (Otakar Kleps <kleps@avonet.cz>)
List pgsql-sql
On Tue, 13 Nov 2001, Otakar Kleps wrote:

> On Postgres 7.1.3(SUSE Linux 7.0 - 2.2.16) I have this problem:
>
> I have table, for example:
>
> CREATE TABLE tbl_test(
> id INTEGERE PRIMARY KEY,
> ...
> _parent INTEGER REFERENCES tbl_test ON DELETE CASCADE,
> ...
> )
>
> Next, I create rule for table tbl_test on event ON DELETE:
> CREATE RULE rule_test AS ON DELETE TO tbl_test DO INSERT INTO ...;
>
> Why RULE doesn't DELETE recursive(for a consideration REFERANCES)!?

I'm running 7.2b2 but I don't see that behavior, can you give a full
test set?



pgsql-sql by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: Help with INSERT into 2 tables
Next
From: Stephan Szabo
Date:
Subject: Re: Help with INSERT into 2 tables