Re: followup on view/rule/delete problem. - Mailing list pgsql-general

From Tom Lane
Subject Re: followup on view/rule/delete problem.
Date
Msg-id 27340.992455816@sss.pgh.pa.us
Whole thread Raw
In response to followup on view/rule/delete problem.  (Pete Leonard <pete@hero.com>)
List pgsql-general
Pete Leonard <pete@hero.com> writes:
> Unfortunately, I'm still not quite there - I'm still experiencing DB
> hangs, and was able to duplicate it with the following simplified schema.
> Is this a 7.1-specific bug?  Is it breaking 7.1.2 as well?
> ...
> create rule delete_foobar as on delete to foobar
> do instead (
> insert into log (id, action) values (OLD.id, 'deleted');
> delete from foo where id=OLD.id;
> );

Almost anything involving a multi-action rule and references to views
is probably vulnerable to the bug I found yesterday :-(.  Please try
it with 7.1.2 plus the patch I posted.

            regards, tom lane

pgsql-general by date:

Previous
From: Pete Leonard
Date:
Subject: Re: followup on view/rule/delete problem.
Next
From: Stephan Szabo
Date:
Subject: Re: function / trigger problem