diff options
author | Noah Misch <noah@leadboat.com> | 2013-07-03 07:29:23 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2013-07-03 07:30:15 -0400 |
commit | c21bb48d6fc1827e117e2667e0a5d9d96d984f46 (patch) | |
tree | d7ceec3bc2bab953a7ca3e94b7fc2798432d76b8 /src/backend/regex/regerror.c | |
parent | a74a977fb0ea535aeae06fe67ee1f9491c30b619 (diff) |
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.
Diffstat (limited to 'src/backend/regex/regerror.c')
0 files changed, 0 insertions, 0 deletions