From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: In PL/Tcl, make database errors return additional info in the er |
Date: | 2016-03-25 19:53:02 |
Message-ID: | E1ajXn4-0000sS-N3@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-03-25 20:54:57 | pgsql: Improve PL/Tcl errorCode facility by providing decoded name for |
Previous Message | Tom Lane | 2016-03-25 16:47:02 | Re: [COMMITTERS] pgsql: Move each SLRU's lwlocks to a separate tranche. |