Re: trailing comment ghost-timing

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: trailing comment ghost-timing
Дата
Msg-id 20131224075301.GB7881@svana.org
обсуждение исходный текст
Ответ на Re: trailing comment ghost-timing  (Andreas Karlsson <andreas@proxel.se>)
Ответы Re: trailing comment ghost-timing
Re: trailing comment ghost-timing
Список pgsql-hackers
On Tue, Dec 24, 2013 at 03:40:58AM +0100, Andreas Karlsson wrote:
> On 12/24/2013 03:17 AM, David Johnston wrote:
> It is not sent to the server as a trailing comment. The following
> file is sent to the server like this.
>
> File:
> /**/;
> /**/
>
> Commands:
> PQexec(..., "/**/;");
> PQexec(..., "/**/");
>
> If this has to be fixed it should be in the client. I think people
> would complain if we broke the API by starting to throw an exception
> on PQexec with a string containing no actual query.

(Untested). Isn't this just a case of psql not printing out a timing if
the server responds with PGRES_EMPTY_QUERY?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> He who writes carelessly confesses thereby at the very outset that he does
> not attach much importance to his own thoughts.  -- Arthur Schopenhauer

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

Предыдущее
От: Abbas Butt
Дата:
Сообщение: Re: varattno remapping
Следующее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: trailing comment ghost-timing