mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -72,6 +72,18 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</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>
|
||||
@@ -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>
|
||||
|
Reference in New Issue
Block a user