From 5b214c5dd1de37764797b3fb9164af3c885a7b86 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Thu, 10 Jul 2014 14:27:54 +0900 Subject: Add new ECHO mode 'errors' that displays only failed commands in psql. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 255e8cac144..bbe59350194 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -72,6 +72,18 @@ PostgreSQL documentation + + + + + + Print failed SQL commands to standard error output. This is + equivalent to setting the variable ECHO to + errors. + + + + @@ -2812,7 +2824,9 @@ bar queries, psql merely prints all queries as they are sent to the server. The switch for this is - . + . If set to errors then only + failed queries are displayed on standard error output. The switch + for this is . -- cgit v1.2.3