| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Preserve SQLSTATE when an SPI error is propagated through PL/pyt |
| Date: | 2011-11-24 15:27:23 |
| Message-ID: | E1RTbCt-00024J-Sh@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Preserve SQLSTATE when an SPI error is propagated through PL/python
exception handler. This was a regression in 9.1, when the capability
to catch specific SPI errors was added, so backpatch to 9.1.
Mika Eloranta, with some editing by Jan Urbański.
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/d2192a108c7b118d430f03cff0ff84861d5026e0
Modified Files
--------------
src/pl/plpython/expected/plpython_error.out | 22 ++++++++++++++++++++++
src/pl/plpython/expected/plpython_error_0.out | 22 ++++++++++++++++++++++
src/pl/plpython/plpython.c | 14 ++++++++------
src/pl/plpython/sql/plpython_error.sql | 20 ++++++++++++++++++++
4 files changed, 72 insertions(+), 6 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2011-11-24 21:48:32 | pgsql: Dump an unvalidated constraint separately from its table |
| Previous Message | Bruce Momjian | 2011-11-24 03:52:42 | pgsql: Add pg_upgrade ENABLE_SAME_CATVERSION_UPGRADES macro for testing |