You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Provide database object names as separate fields in error messages.
This patch addresses the problem that applications currently have toextract object names from possibly-localized textual error messages,if they want to know for example which index caused a UNIQUE_VIOLATIONfailure. It adds new error message fields to the wire protocol, whichcan carry the name of a table, table column, data type, or constraintassociated with the error. (Since the protocol spec has always instructedclients to ignore unrecognized field types, this should not create anycompatibility problem.)Support for providing these new fields has been added to just a limited setof 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, withadditional hacking by Tom Lane.