Re: Error message inconsistency - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Error message inconsistency
Date
Msg-id 20200121143947.GA16134@alvherre.pgsql
Whole thread Raw
In response to Re: Error message inconsistency  (MBeena Emerson <mbeena.emerson@gmail.com>)
Responses Re: Error message inconsistency  (Mahendra Singh Thalor <mahi6run@gmail.com>)
List pgsql-hackers
On 2020-Jan-21, MBeena Emerson wrote:

> The usage of the function errtableconstraint seems only to set the
> schema_name table_name constraint_name internally and not for display
> purposes. As seen in the following two cases where the relation name is
> displayed using RelationGetRelationName and errtableconstraint is called as
> part of errcode parameter not errmsg.

You can see those fields by raising the log verbosity; it's a
client-side thing. For example, in psql you can use
\set VERBOSITY verbose

In psql you can also use \errverbose after an error to print those
fields.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: James Coleman
Date:
Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort)
Next
From: Tomas Vondra
Date:
Subject: We're getting close to the end of 2020-01 CF