summaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-07-10 14:27:54 +0900
committerFujii Masao <fujii@postgresql.org>2014-07-10 14:27:54 +0900
commit5b214c5dd1de37764797b3fb9164af3c885a7b86 (patch)
tree2bfde2150e2abaf04fe947f13843c6c8117f3d6c /src/bin/psql/help.c
parentb043985b7aaf62f6978a0c567c8340ad9cf1ad67 (diff)
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.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 3aa3c169c23..f8f000fb50f 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -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"));