From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com> |
Cc: | Rajeev rastogi <rajeev(dot)rastogi(at)huawei(dot)com>, Samrat Revagade <revagade(dot)samrat(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Fabrízio Mello <fabriziomello(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: psql: show only failed queries |
Date: | 2014-06-30 11:33:09 |
Message-ID: | CAFj8pRCv6rK6HtNUo1fpckG6NVXOV=O6fU+q-X+wT6puBqTYrA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2014-06-30 13:01 GMT+02:00 Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>:
> At 2014-06-30 12:48:30 +0200, pavel(dot)stehule(at)gmail(dot)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.
>
fixed
>
> 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.
>
I have it in TODO. But I don't would to introduce a dependency between
these patches - so when first patch will be committed, than I update second
patch
Regards
Pavel
>
> -- Abhijit
>
Attachment | Content-Type | Size |
---|---|---|
echo-error-03.patch | text/x-patch | 4.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Asif Naeem | 2014-06-30 11:35:45 | Re: [HACKERS] BUG #9652: inet types don't support min/max |
Previous Message | Ashutosh Bapat | 2014-06-30 11:17:26 | Re: inherit support for foreign tables |