diff options
| author | Fujii Masao <fujii@postgresql.org> | 2014-07-10 14:27:54 +0900 |
|---|---|---|
| committer | Fujii Masao <fujii@postgresql.org> | 2014-07-10 14:27:54 +0900 |
| commit | 5b214c5dd1de37764797b3fb9164af3c885a7b86 (patch) | |
| tree | 2bfde2150e2abaf04fe947f13843c6c8117f3d6c /doc/src | |
| parent | b043985b7aaf62f6978a0c567c8340ad9cf1ad67 (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 'doc/src')
| -rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 16 |
1 files changed, 15 insertions, 1 deletions
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 @@ -73,6 +73,18 @@ PostgreSQL documentation </varlistentry> <varlistentry> + <term><option>-b</></term> + <term><option>--echo-errors</></term> + <listitem> + <para> + Print failed SQL commands to standard error output. This is + equivalent to setting the variable <varname>ECHO</varname> to + <literal>errors</literal>. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-c <replaceable class="parameter">command</replaceable></></term> <term><option>--command=<replaceable class="parameter">command</replaceable></></term> <listitem> @@ -2812,7 +2824,9 @@ bar <literal>queries</literal>, <application>psql</application> merely prints all queries as they are sent to the server. The switch for this is - <option>-e</option>. + <option>-e</option>. If set to <literal>errors</literal> then only + failed queries are displayed on standard error output. The switch + for this is <option>-b</option>. </para> </listitem> </varlistentry> |
