postgresql/src/bin
Tom Lane 3cc38ca7d2 Add psql \errverbose command to see last server error at full verbosity.
Often, upon getting an unexpected error in psql, one's first wish is that
the verbosity setting had been higher; for example, to be able to see the
schema-name field or the server code location info.  Up to now the only way
has been to adjust the VERBOSITY variable and repeat the failing query.
That's a pain, and it doesn't work if the error isn't reproducible.

This commit adds a psql feature that redisplays the most recent server
error at full verbosity, without needing to make any variable changes or
re-execute the failed command.  We just need to hang onto the latest error
PGresult in case the user executes \errverbose, and then apply libpq's
new PQresultVerboseErrorMessage() function to it.  This will consume
some trivial amount of psql memory, but otherwise the cost when the
feature isn't used should be negligible.

Alex Shulgin, reviewed by Daniel Vérité, some improvements by me
2016-04-03 12:29:55 -04:00
..
initdb Sync tzload() and tzparse() APIs with IANA release tzcode2016c. 2016-03-28 17:19:29 -04:00
pg_archivecleanup Make WAL-related utilities handle .partial WAL files properly. 2015-07-03 11:53:58 +09:00
pg_basebackup Merge wal_level "archive" and "hot_standby" into new name "replica" 2016-03-18 23:56:03 +01:00
pg_config Revert inadvertant change in pg_config behavior 2016-02-17 10:00:34 -08:00
pg_controldata Merge wal_level "archive" and "hot_standby" into new name "replica" 2016-03-18 23:56:03 +01:00
pg_ctl Fix backwards test for Windows service-ness in pg_ctl. 2016-03-07 10:40:44 -05:00
pg_dump Allow aggregate transition states to be serialized and deserialized. 2016-03-29 15:04:05 -04:00
pg_resetxlog Change delimiter used for display of NextXID 2016-02-12 14:23:59 -08:00
pg_rewind pg_rewind: Improve internationalization 2016-03-28 14:33:00 -03:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade Fix typos. 2016-03-15 18:06:11 -04:00
pg_xlogdump Add Generic WAL interface 2016-04-01 12:21:48 +03:00
pgbench pgbench: Remove unused parameter 2016-04-01 17:11:18 -03:00
pgevent Update copyright for 2016 2016-01-02 13:33:40 -05:00
psql Add psql \errverbose command to see last server error at full verbosity. 2016-04-03 12:29:55 -04:00
scripts Link libpq after libpgfeutils to satisfy Windows linker. 2016-03-24 20:45:31 -04:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00