Re: pl/pythonu - Mailing list pgsql-general

From Mike Mascari
Subject Re: pl/pythonu
Date
Msg-id 402A547B.2040005@mascari.com
Whole thread Raw
In response to pl/pythonu  ("C G" <csgcsg39@hotmail.com>)
List pgsql-general
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;

Do you have a trigger on 't1' which invokes testing()?

Mike Mascari



pgsql-general by date:

Previous
From: "Ed L."
Date:
Subject: Re: DB cache size strategies
Next
From: Tom Lane
Date:
Subject: Re: pg_class and relfilenode