Re: Help with RULE

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Otakar Kleps <kleps(at)avonet(dot)cz>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Help with RULE
Date: 2001-11-15 15:07:47
Message-ID: 20011115070711.Y7025-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-11-15 15:11:04 Re: Help with INSERT into 2 tables
Previous Message Stephan Szabo 2001-11-15 15:03:16 Re: INSERT question