Re: [proposal] Add an option for returning SQLSTATE in psql error message - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [proposal] Add an option for returning SQLSTATE in psql error message
Date
Msg-id 18949.1554413194@sss.pgh.pa.us
Whole thread Raw
In response to Re: [proposal] Add an option for returning SQLSTATE in psql error message  (didier <did447@gmail.com>)
List pgsql-hackers
didier <did447@gmail.com> writes:
> [ 0001-Add-sqlstate-output-mode-to-VERBOSITY_v1.patch ]

Pushed with some mostly-cosmetic adjustments.  The main non-cosmetic
thing I did was to adjust the logic so that if no SQLSTATE is available,
it acts like TERSE mode.  Otherwise, we'd print nothing at all except
"ERROR:", which seems both quite useless and contrary to our message
style guidelines.  Moreover, documenting it this way makes the behavior
not inconsistent with what happens for libpq-generated errors and
errors from protocol-version-2 servers.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: query logging of prepared statements
Next
From: "Bossart, Nathan"
Date:
Subject: Re: New vacuum option to do only freezing