pgsql: PL/Python custom SPI exceptions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: PL/Python custom SPI exceptions
Date: 2011-02-28 16:51:17
Message-ID: E1Pu6JZ-0003mm-Oh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

PL/Python custom SPI exceptions

This provides a separate exception class for each error code that the
backend defines, as well as the ability to get the SQLSTATE from the
exception object.

Jan Urbański, reviewed by Steve Singer

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/474a42473adf9b18417242f1fc0691a857ec578b

Modified Files
--------------
doc/src/sgml/plpython.sgml | 49 +++++++-
src/pl/plpython/.gitignore | 1 +
src/pl/plpython/Makefile | 12 ++-
src/pl/plpython/expected/plpython_error.out | 44 ++++++-
src/pl/plpython/expected/plpython_error_0.out | 44 ++++++-
.../plpython/expected/plpython_subtransaction.out | 10 +-
.../expected/plpython_subtransaction_0.out | 2 +-
src/pl/plpython/expected/plpython_test.out | 6 +-
src/pl/plpython/generate-spiexceptions.pl | 44 +++++++
src/pl/plpython/plpython.c | 129 ++++++++++++++++++--
src/pl/plpython/sql/plpython_error.sql | 21 +++
src/tools/msvc/Solution.pm | 6 +
12 files changed, 342 insertions(+), 26 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-02-28 17:45:11 pgsql: Fix regression tests after PL/Python custom SPI exceptions patch
Previous Message Tom Lane 2011-02-28 06:18:28 pgsql: Add documentation for data-modifying statements in WITH clauses.