pgsql: Add GET STACKED DIAGNOSTICS plpgsql command to retrieve exceptio

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add GET STACKED DIAGNOSTICS plpgsql command to retrieve exceptio
Date: 2011-07-18 18:47:57
Message-ID: E1QisrF-00062U-Tn@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add GET STACKED DIAGNOSTICS plpgsql command to retrieve exception info.

This is more SQL-spec-compliant, more easily extensible, and better
performing than the old method of inventing special variables.

Pavel Stehule, reviewed by Shigeru Hanada and David Wheeler

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3d4890c0c5d27dfdf7d1a8816d7bdcdba3c39d21

Modified Files
--------------
doc/src/sgml/plpgsql.sgml | 121 +++++++++++++++++++++++++++++----
src/backend/utils/errcodes.txt | 55 +++++++++-------
src/pl/plpgsql/src/gram.y | 89 +++++++++++++++++++++++-
src/pl/plpgsql/src/pl_exec.c | 71 ++++++++++++++++++--
src/pl/plpgsql/src/pl_funcs.c | 47 ++++++++-----
src/pl/plpgsql/src/pl_scanner.c | 7 ++
src/pl/plpgsql/src/plpgsql.h | 11 +++-
src/test/regress/expected/plpgsql.out | 75 ++++++++++++++++++++
src/test/regress/sql/plpgsql.sql | 70 +++++++++++++++++++
9 files changed, 480 insertions(+), 66 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Mark Kirkwood 2011-07-18 22:29:45 Re: Re: [COMMITTERS] pgsql: Add temp_file_limit GUC parameter to constrain temporary file sp
Previous Message Michael Meskes 2011-07-18 17:22:26 pgsql: Adapted expected result for latest change to ecpglib.