Re: psql: show only failed queries

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: psql: show only failed queries
Дата
Msg-id 20140630110108.GZ31357@toroid.org
обсуждение исходный текст
Ответ на Re: psql: show only failed queries  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: psql: show only failed queries
Список pgsql-hackers
At 2014-06-30 12:48:30 +0200, pavel.stehule@gmail.com wrote:
>
> +      <para>
> +      Print a failed SQL commands to standard error output. This is
> +      equivalent to setting the variable <varname>ECHO</varname> to
> +      <literal>errors</literal>.

No "a", just "Print failed SQL commands …".

> -        <option>-e</option>.
> +        <option>-e</option>. If set to <literal>error</literal> then only
> +        failed queries are displayed.

Should be "errors" here, not "error".

>      printf(_("  -a, --echo-all           echo all input from script\n"));
> +    printf(_("  -b  --echo-errors        echo failed commands sent to server\n"));
>      printf(_("  -e, --echo-queries       echo commands sent to server\n"));

Should have a comma after -b to match other options. Also I would remove
"sent to server" from the description: "echo failed commands" is fine.

Otherwise looks fine. I see no reason to wait for further feedback, so
I'll mark this ready for committer if you make the above corrections.

At some point, you should probably also update your --help-variables
patch to add this new value to the description of ECHO.

-- Abhijit



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Set new system identifier using pg_resetxlog
Следующее
От: Matheus de Oliveira
Дата:
Сообщение: Re: How about a proper TEMPORARY TABLESPACE?