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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: didier <did447@gmail.com>
Cc: andrew@tao11.riddles.org.uk, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-12-03T16:51:49Z
Lists: pgsql-hackers
didier <did447@gmail.com> writes:
> Yep, name is bad, but I'm not sure about VERBOSITY, isn't it
> controlling output from the server not the client?

No, it's in libpq, so you'd have to touch that not the server.

I agree with Andrew's thought, and would further say that just
"\set VERBOSITY sqlstate" would be a reasonable API.  Making this
separate from VERBOSITY is weird.

			regards, tom lane


Commits

  1. Add a "SQLSTATE-only" error verbosity option to libpq and psql.