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

From Pavel Stehule
Subject Re: [proposal] Add an option for returning SQLSTATE in psql error message
Date
Msg-id CAFj8pRAK80pU_eKO91r9QipfA4TPtmr7Jsyq-AxzQzGythhsFw@mail.gmail.com
Whole thread Raw
In response to Re: [proposal] Add an option for returning SQLSTATE in psql error message  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers


po 3. 12. 2018 v 16:49 odesílatel Andrew Gierth <andrew@tao11.riddles.org.uk> napsal:
>>>>> "didier" == didier  <did447@gmail.com> writes:

 didier> Attached a POC adding a new variable ECHO_ERROR
 didier> \set ECHO_ERROR text|none|psqlstate

I wouldn't have called it that. Possibly another option to the existing
VERBOSITY variable? \set VERBOSITY sqlstate_only or something of that
ilk (it's already not unusual to use \set VERBOSITY terse in regression
tests)

It is good idea to look to this option.

Pavel


--
Andrew (irc:RhodiumToad)

pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: [proposal] Add an option for returning SQLSTATE in psql error message
Next
From: didier
Date:
Subject: Re: [proposal] Add an option for returning SQLSTATE in psql error message