postgresql/src/pl/tcl
Tom Lane 09cecdf285 Fix a number of places that produced XX000 errors in the regression tests.
It's against project policy to use elog() for user-facing errors, or to
omit an errcode() selection for errors that aren't supposed to be "can't
happen" cases.  Fix all the violations of this policy that result in
ERRCODE_INTERNAL_ERROR log entries during the standard regression tests,
as errors that can reliably be triggered from SQL surely should be
considered user-facing.

I also looked through all the files touched by this commit and fixed
other nearby problems of the same ilk.  I do not claim to have fixed
all violations of the policy, just the ones in these files.

In a few places I also changed existing ERRCODE choices that didn't
seem particularly appropriate; mainly replacing ERRCODE_SYNTAX_ERROR
by something more specific.

Back-patch to 9.5, but no further; changing ERRCODE assignments in
stable branches doesn't seem like a good idea.
2015-08-02 23:49:19 -04:00
..
expected PL/Tcl: Add event trigger support 2013-11-23 21:32:00 -05:00
modules Fix whitespace issues found by git diff --check, add gitattributes 2013-11-10 14:48:29 -05:00
po Translation updates 2015-06-28 23:56:55 -04:00
sql PL/Tcl: Add event trigger support 2013-11-23 21:32:00 -05:00
.gitignore Allow make check in PL directories 2011-02-15 06:52:12 +02:00
Makefile Move interpreter shared library detection to configure 2015-05-01 21:38:21 -04:00
nls.mk Translation updates 2013-05-05 22:34:23 -04:00
pltcl--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
pltcl--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltcl.c Fix a number of places that produced XX000 errors in the regression tests. 2015-08-02 23:49:19 -04:00
pltcl.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltclu--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
pltclu--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
pltclu.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00