pgsql: In PL/Tcl, make database errors return additional info in the er

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: In PL/Tcl, make database errors return additional info in the er
Дата
Msg-id E1ajXn4-0000sS-N3@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
In PL/Tcl, make database errors return additional info in the errorCode.

Tcl has a convention for returning additional info about an error in a
global variable named errorCode.  Up to now PL/Tcl has ignored that,
but this patch causes database errors caught by PL/Tcl to fill in
errorCode with useful information from the ErrorData struct.

Jim Nasby, reviewed by Pavel Stehule and myself

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/pltcl.sgml             |  74 +++++++++++++++++-
src/pl/tcl/expected/pltcl_setup.out |  28 +++++++
src/pl/tcl/pltcl.c                  | 151 +++++++++++++++++++++++++++++++++++-
src/pl/tcl/sql/pltcl_setup.sql      |  24 ++++++
4 files changed, 272 insertions(+), 5 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix DROP OPERATOR to reset oprcom/oprnegate links to the dropped
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve PL/Tcl errorCode facility by providing decoded name for