Add GET STACKED DIAGNOSTICS plpgsql command to retrieve exception info.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3d4890c0c5d27dfdf7d1a8816d7bdcdba3c39d21
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-07-18T18:47:18Z
Releases: 9.2.0
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

Files