pgsql: Preserve SQLSTATE when an SPI error is propagated through PL/pyt

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Preserve SQLSTATE when an SPI error is propagated through PL/pyt
Дата
Msg-id E1RTbCt-00024H-PN@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f21fc7f9fc63ff86d7d77d352ae274b6e2b6e09e

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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Add pg_upgrade ENABLE_SAME_CATVERSION_UPGRADES macro for testing
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Dump an unvalidated constraint separately from its table