You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
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 messagewording. Of course, the SQLSTATE isn't guaranteed stable either, butit should be more so than the error message text.Note: there's a bit of an ABI change for libpq here, but it seemsOK 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 likePQERRORS_DEFAULT, thanks to the way the tests in pqBuildErrorMessage3have historically been phrased. That seems acceptable.Didier Gautheron, reviewed by Dagfinn Ilmari MannsåkerDiscussion:https://postgr.es/m/CAJRYxuKyj4zA+JGVrtx8OWAuBfE-_wN4sUMK4H49EuPed=mOBw@mail.gmail.com