Skip site navigation (1) Skip section navigation (2)

Re: plpythonu: how to catch plpy.execute() exceptions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dragos Valentin Moinescu <dragos(dot)moinescu(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: plpythonu: how to catch plpy.execute() exceptions
Date: 2010-10-29 14:03:51
Message-ID: 671.1288361031@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Dragos Valentin Moinescu <dragos(dot)moinescu(at)gmail(dot)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

In response to

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2010-10-29 14:40:12
Subject: Re: plpythonu: how to catch plpy.execute() exceptions
Previous:From: Sergey KonoplevDate: 2010-10-29 13:59:11
Subject: Re: plpythonu: how to catch plpy.execute() exceptions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group