Re: [proposal] Add an option for returning SQLSTATE in psql error message

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: didier <did447(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [proposal] Add an option for returning SQLSTATE in psql error message
Date: 2018-12-03 15:49:42
Message-ID: 8736re4nsv.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>>> "didier" == didier <did447(at)gmail(dot)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)

--
Andrew (irc:RhodiumToad)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2018-12-03 16:12:26 Re: [proposal] Add an option for returning SQLSTATE in psql error message
Previous Message David Steele 2018-12-03 15:49:39 Re: Commitfest 2018-11