Improve PL/Tcl errorCode facility by providing decoded name for SQLSTATE.

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

Commit: cd37bb78599dcf24cd22a124ce9174b5e2a76880
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-25T20:54:52Z
Releases: 9.6.0
Improve PL/Tcl errorCode facility by providing decoded name for SQLSTATE.

We don't really want to encourage people to write numeric SQLSTATEs in
programs; that's unreadable and error-prone.  Copy plpgsql's infrastructure
for converting between SQLSTATEs and exception names shown in Appendix A,
and modify examples in tests and documentation to do it that way.

Files

Documentation touched