Add GET STACKED DIAGNOSTICS plpgsql command to retrieve exception info.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jul 2011 18:46:27 +0000 (14:46 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jul 2011 18:47:18 +0000 (14:47 -0400)
commit3d4890c0c5d27dfdf7d1a8816d7bdcdba3c39d21
treef8dafdd9d9ae54c076d5e79319b90812cc58f9d0
parent3406dd22fdd794d90c75a1272a57db8faa7c826d
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
doc/src/sgml/plpgsql.sgml
src/backend/utils/errcodes.txt
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_funcs.c
src/pl/plpgsql/src/pl_scanner.c
src/pl/plpgsql/src/plpgsql.h
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql