]> granicus.if.org Git - postgresql/commit - src/bin/psql/common.c
Add new ECHO mode 'errors' that displays only failed commands in psql.
authorFujii Masao <fujii@postgresql.org>
Thu, 10 Jul 2014 05:27:54 +0000 (14:27 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 10 Jul 2014 05:27:54 +0000 (14:27 +0900)
commit5b214c5dd1de37764797b3fb9164af3c885a7b86
tree2bfde2150e2abaf04fe947f13843c6c8117f3d6c
parentb043985b7aaf62f6978a0c567c8340ad9cf1ad67
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.
doc/src/sgml/ref/psql-ref.sgml
src/bin/psql/common.c
src/bin/psql/help.c
src/bin/psql/settings.h
src/bin/psql/startup.c