Re: pl/pythonu - Mailing list pgsql-general

From scott.marlowe
Subject Re: pl/pythonu
Date
Msg-id Pine.LNX.4.33.0402110934450.32626-100000@css120.ihs.com
Whole thread Raw
In response to pl/pythonu  ("C G" <csgcsg39@hotmail.com>)
List pgsql-general
On Wed, 11 Feb 2004, C G wrote:

> Dear All,
>
> Could anyone explain why this function does will not work? The error message
> is
> DETAIL: exceptions.RuntimeError: maximum recursion depth exceeded.
>
> CREATE FUNCTION testing() RETURNS trigger AS'
>
> plan=plpy.prepare(''INSERT INTO t1 values ($1)'',[''text''])
> plpy.execute(plan,[''blah''])
> return ''MODIFY''
>
> 'LANGUAGE plpythonu;

Perhaps the plpy.execute is inserting into the same table as the trigger
is on?  If that's the case, then the trigger will be recursively called
over and over until the "maximum recursion depth" is "exceeded".


pgsql-general by date:

Previous
From: "Ed L."
Date:
Subject: Re: DB cache size strategies
Next
From: Josh Berkus
Date:
Subject: Anyone used GForge?