postgresql/src/bin
Tom Lane 7bac3acab4 Add a "SQLSTATE-only" error verbosity option to libpq and psql.
This is intended for use mostly in test scripts for external tools,
which could do without cross-PG-version variations in error message
wording.  Of course, the SQLSTATE isn't guaranteed stable either, but
it should be more so than the error message text.

Note: there's a bit of an ABI change for libpq here, but it seems
OK because if somebody compiles against a newer version of libpq-fe.h,
and then tries to pass PQERRORS_SQLSTATE to PQsetErrorVerbosity()
of an older libpq library, it will be accepted and then act like
PQERRORS_DEFAULT, thanks to the way the tests in pqBuildErrorMessage3
have historically been phrased.  That seems acceptable.

Didier Gautheron, reviewed by Dagfinn Ilmari Mannsåker

Discussion: https://postgr.es/m/CAJRYxuKyj4zA+JGVrtx8OWAuBfE-_wN4sUMK4H49EuPed=mOBw@mail.gmail.com
2019-04-04 17:22:02 -04:00
..
initdb Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_archivecleanup Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_basebackup Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_checksums Add progress reporting to pg_checksums 2019-04-02 10:58:07 +09:00
pg_config Replace @postgresql.org with @lists.postgresql.org for mailinglists 2019-01-19 19:06:35 +01:00
pg_controldata Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_ctl Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_dump pg_restore: Require "-f -" to mean stdout 2019-04-04 16:54:15 -03:00
pg_resetwal Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_rewind Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_test_fsync Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_test_timing Translation updates 2018-05-21 12:29:52 -04:00
pg_upgrade Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pg_waldump Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
pgbench Remove now-unnecessary thread pointer arguments in pgbench. 2019-04-03 17:16:09 -04:00
pgevent Update copyright for 2019 2019-01-02 12:44:25 -05:00
psql Add a "SQLSTATE-only" error verbosity option to libpq and psql. 2019-04-04 17:22:02 -04:00
scripts Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
Makefile Rename pg_verify_checksums to pg_checksums 2019-03-13 10:43:20 +09:00