postgresql/src/backend/utils
Tom Lane 991f3e5ab3 Provide database object names as separate fields in error messages.
This patch addresses the problem that applications currently have to
extract object names from possibly-localized textual error messages,
if they want to know for example which index caused a UNIQUE_VIOLATION
failure.  It adds new error message fields to the wire protocol, which
can carry the name of a table, table column, data type, or constraint
associated with the error.  (Since the protocol spec has always instructed
clients to ignore unrecognized field types, this should not create any
compatibility problem.)

Support for providing these new fields has been added to just a limited set
of error reports (mainly, those in the "integrity constraint violation"
SQLSTATE class), but we will doubtless add them to more calls in future.

Pavel Stehule, reviewed and extensively revised by Peter Geoghegan, with
additional hacking by Tom Lane.
2013-01-29 17:08:26 -05:00
..
adt Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
cache Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
error Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
fmgr Add infrastructure for storing a VARIADIC ANY function's VARIADIC flag. 2013-01-21 20:26:15 -05:00
hash Fix hash_update_hash_key() to handle same-bucket case correctly. 2013-01-14 21:57:15 -05:00
init Fix IsUnderPostmaster/EXEC_BACKEND confusion 2013-01-02 18:39:20 -03:00
mb Update copyrights for 2013 2013-01-01 17:15:01 -05:00
misc Base the default SSL ciphers on DEFAULT instead of ALL 2013-01-17 15:04:44 +01:00
mmgr Update copyrights for 2013 2013-01-01 17:15:01 -05:00
resowner Update copyrights for 2013 2013-01-01 17:15:01 -05:00
sort Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
time Improve concurrency of foreign key locking 2013-01-23 12:04:59 -03:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Gen_dummy_probes.sed Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Gen_fmgrtab.pl Update copyrights for 2013 2013-01-01 17:15:01 -05:00
generate-errcodes.pl Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Update copyrights for 2013 2013-01-01 17:15:01 -05:00