Re: pl/pythonu

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: C G <csgcsg39(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pythonu
Date: 2004-02-11 16:12:43
Message-ID: 402A547B.2040005@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-02-11 16:18:13 Re: DB cache size strategies
Previous Message Ed L. 2004-02-11 16:09:54 Re: DB cache size strategies