mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Add new ECHO mode 'errors' that displays only failed commands in psql.
When the psql variable ECHO is set to 'erros', only failed SQL commands are printed to standard error output. Also this patch adds -b option into psql. This is equivalent to setting the variable ECHO to 'errors'. Pavel Stehule, reviewed by Fabrízio de Royes Mello, Samrat Revagade, Kumar Rajeev Rastogi, Abhijit Menon-Sen, and me.
This commit is contained in:
@ -87,6 +87,7 @@ usage(void)
|
||||
|
||||
printf(_("\nInput and output options:\n"));
|
||||
printf(_(" -a, --echo-all echo all input from script\n"));
|
||||
printf(_(" -b, --echo-errors echo failed commands\n"));
|
||||
printf(_(" -e, --echo-queries echo commands sent to server\n"));
|
||||
printf(_(" -E, --echo-hidden display queries that internal commands generate\n"));
|
||||
printf(_(" -L, --log-file=FILENAME send session log to file\n"));
|
||||
|
Reference in New Issue
Block a user