pgsql: PL/Python: Report argument parsing errors using exceptions - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: PL/Python: Report argument parsing errors using exceptions
Date
Msg-id E1bJXbt-0004tT-Pu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
PL/Python: Report argument parsing errors using exceptions

Instead of calling PLy_elog() for reporting Python argument parsing
errors, generate appropriate exceptions.  This matches the existing plpy
functions and is more consistent with the behavior of the Python
argument parsing routines.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3a4a33ad49e7887b104a29323e4ea625d164a139

Modified Files
--------------
src/pl/plpython/expected/plpython_ereport.out | 28 +++++++++++++++++++--------
src/pl/plpython/plpy_plpymodule.c             | 23 +++++++++++++++++-----
2 files changed, 38 insertions(+), 13 deletions(-)


pgsql-committers by date:

Previous
From: Christoph Berg
Date:
Subject: Re: pgsql: doc: mention dependency on collation libraries
Next
From: Tom Lane
Date:
Subject: pgsql: Round rowcount estimate for a partial path to an integer.