Re: libpq sendQuery -- getResult not returning until all queries complete

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq sendQuery -- getResult not returning until all queries complete
Дата
Msg-id 8224.1292975343@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq sendQuery -- getResult not returning until all queries complete  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: libpq sendQuery -- getResult not returning until all queries complete  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
Merlin Moncure <mmoncure@gmail.com> writes:
> hm, a pq_flush() after command completion putmessage in
> backend/tcop/dest.c seems to fix the problem.  I'll send up a patch to
> -hackers.  They might backpatch it, unless there is a good reason not
> to do this (I can't think of any).

If you just unconditionally flush there, it will result in an extra
network message in the normal case where there's not another query
to do.  The current code is designed not to flush until it sends
ReadyForQuery.

            regards, tom lane

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: plpython returns integer[] fails for multi-dimensional array
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: plpython returns integer[] fails for multi-dimensional array