Re: plpythonu: how to catch plpy.execute() exceptions - Mailing list pgsql-admin

From Tom Lane
Subject Re: plpythonu: how to catch plpy.execute() exceptions
Date
Msg-id 671.1288361031@sss.pgh.pa.us
Whole thread Raw
In response to plpythonu: how to catch plpy.execute() exceptions  (Dragos Valentin Moinescu <dragos.moinescu@gmail.com>)
Responses Re: plpythonu: how to catch plpy.execute() exceptions
List pgsql-admin
Dragos Valentin Moinescu <dragos.moinescu@gmail.com> writes:
> The thing is that I cannot catch the exception raised by plpy.execute().

Yeah, plpython's error handling is fundamentally broken.  Somebody
needs to rewrite it to be more like the other PLs.  In the meantime,
I'd suggest using plperl, which has gotten a lot more love than
plpython ever did.

            regards, tom lane

pgsql-admin by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: plpythonu: how to catch plpy.execute() exceptions
Next
From: Tom Lane
Date:
Subject: Re: plpythonu: how to catch plpy.execute() exceptions