From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: In PL/Tcl, make database errors return additional info in the er
Date: Fri, 25 Mar 2016 19:53:02 +0000
Message-ID: <E1ajXn4-0000sS-N3@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: In PL/Tcl, make database errors return additional info in the er
In-Reply-To: <E1ajXn4-0000sS-N3@gemulon.postgresql.org>
References: <E1ajXn4-0000sS-N3@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox