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

pgsql: Report Python errors from iterators with PLy_elog

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Report Python errors from iterators with PLy_elog
Date: 2011-03-07 21:53:09
Message-ID: E1PwiMX-0006wx-5d@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Report Python errors from iterators with PLy_elog

This improves reporting, as the error string now includes the actual
Python exception. As a side effect, this no longer sets the errcode to
ERRCODE_DATA_EXCEPTION, which might be considered a feature, as it's
not documented and not clear why iterator errors should be treated
differently.

Jan UrbaƄski

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8f76324352986287c04832f8e6450d4d2952a030

Modified Files
--------------
src/pl/plpython/plpython.c |    4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

pgsql-committers by date

Next:From: Jaime CasanovaDate: 2011-03-08 00:20:27
Subject: Re: pgsql: Basic Recovery Control functions for use in Hot Standby. Pause,
Previous:From: Tom LaneDate: 2011-03-07 21:21:54
Subject: pgsql: Improve description of inquiry functions that accept regclass.

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