Re: BUG #5319: recursion in the triggers

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Michail Antonov <atin65536(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5319: recursion in the triggers
Date: 2010-02-08 04:52:25
Message-ID: 603c8f071002072052q7a0cc2c7m3e834e49f533ea12@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Feb 7, 2010 at 8:03 PM, Michail Antonov <atin65536(at)gmail(dot)com> wrote:
> The following bug has been logged online:
>
> Bug reference:      5319
> Logged by:          Michail Antonov
> Email address:      atin65536(at)gmail(dot)com
> PostgreSQL version: 8.4.2
> Operating system:   Windows XP
> Description:        recursion in the triggers
> Details:
>
> I have 'after insert' trigger, which call function, which insert row in the
> same table. I expect, that trigger will be called again, but it does not
> heppened.
>
> Reply me, is it a bug or feature?

I don't believe there's anything in the server that would prevent
infinite recursion in a case like this, so my guess is that your code
isn't working the way you think it's working. Since you haven't
provided a test case it's hard to speculate as to what the problem
might be.

...Robert

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2010-02-08 15:23:05 Re: weird bug in rebuilding RPMs
Previous Message Michail Antonov 2010-02-08 01:03:00 BUG #5319: recursion in the triggers