Enhanced custom error in PLPythonu
Patch adds a new, more rich, way to emit error message or exception from
PL/Pythonu code.
Author: Pavel Stehule
Reviewers: Catalin Iacob, Peter Eisentraut, Jim Nasby
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/5c3c3cd0a3046339597a03bc708cb5530dc07059
Modified Files
--------------
doc/src/sgml/plpython.sgml | 66 ++++++---
src/pl/plpython/expected/plpython_test.out | 193 ++++++++++++++++++++++++++-
src/pl/plpython/plpy_elog.c | 167 +++++++++++++++++++++--
src/pl/plpython/plpy_elog.h | 2 +
src/pl/plpython/plpy_plpymodule.c | 206 ++++++++++++++++++++++-------
src/pl/plpython/plpy_spi.c | 11 +-
src/pl/plpython/sql/plpython_test.sql | 137 ++++++++++++++++++-
7 files changed, 701 insertions(+), 81 deletions(-)