Re: trailing comment ghost-timing

Поиск
Список
Период
Сортировка
От Fabrízio de Royes Mello
Тема Re: trailing comment ghost-timing
Дата
Msg-id CAFcNs+pkCAzhxJw63Chf2ni6ma89WevBEj3xzuR_QcWaZDNpdg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: trailing comment ghost-timing  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: trailing comment ghost-timing
Список pgsql-hackers

On Tue, Dec 24, 2013 at 5:53 AM, Martijn van Oosterhout <kleptog@svana.org> wrote:
>
> 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?
>

Works... look to the attached patch!

Regards,

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Timbira: http://www.timbira.com.br
>> Blog sobre TI: http://fabriziomello.blogspot.com
>> Perfil Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello
Вложения

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: trailing comment ghost-timing
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: varattno remapping