postgresql/src
Noah Misch 7cd9b1371d Expose object name error fields in PL/pgSQL.
Specifically, permit attaching them to the error in RAISE and retrieving
them from a caught error in GET STACKED DIAGNOSTICS.  RAISE enforces
nothing about the content of the fields; for its purposes, they are just
additional string fields.  Consequently, clarify in the protocol and
libpq documentation that the usual relationships between error fields,
like a schema name appearing wherever a table name appears, are not
universal.  This freedom has other applications; consider a FDW
propagating an error from an RDBMS having no schema support.

Back-patch to 9.3, where core support for the error fields was
introduced.  This prevents the confusion of having a release where libpq
exposes the fields and PL/pgSQL does not.

Pavel Stehule, lexical revisions by Noah Misch.
2013-07-03 07:29:56 -04:00
..
backend Add support for multiple kinds of external toast datums. 2013-07-02 13:38:55 -04:00
bin pg_restore: Error about incompatible options 2013-07-02 20:07:35 -04:00
common pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
include Add #include to make header file independent 2013-07-02 20:19:52 -04:00
interfaces ecpg: Consistently use mm_strdup() 2013-06-29 22:14:56 -04:00
makefiles Improve support for building PGXS modules with VPATH. 2013-07-01 12:53:05 -04:00
pl Expose object name error fields in PL/pgSQL. 2013-07-03 07:29:56 -04:00
port Send SIGKILL to children if they don't die quickly in immediate shutdown 2013-06-28 17:49:46 -04:00
template Remove _FORTIFY_SOURCE 2012-10-10 21:42:38 -04:00
test Expose object name error fields in PL/pgSQL. 2013-07-03 07:29:56 -04:00
timezone pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
tools Cooperate with the Valgrind instrumentation framework. 2013-06-26 20:22:25 -04:00
tutorial Modernize string literal syntax in tutorial example. 2013-01-19 17:20:32 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Improve support for building PGXS modules with VPATH. 2013-07-01 12:53:05 -04:00
Makefile.shlib Add pkg-config files for libpq and ecpg libraries 2013-03-31 16:58:40 -04:00
nls-global.mk NLS: Use msgmerge --previous option 2012-12-13 23:12:12 -05:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00