Re: Proposal: PqSendBuffer removal

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal: PqSendBuffer removal
Дата
Msg-id 24464.1583442655@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Proposal: PqSendBuffer removal  (Aleksei Ivanov <iv.alekseii@gmail.com>)
Ответы Re: Proposal: PqSendBuffer removal  (Aleksei Ivanov <iv.alekseii@gmail.com>)
Список pgsql-hackers
Aleksei Ivanov <iv.alekseii@gmail.com> writes:
> I am really curious what was the original intention of using the
> PqSendBuffer and is it possible to remove it now.

> Currently all messages are copied from StringInfo to this buffer and sent,
> which from my point of view is redundant operation.

That would mean doing a separate send() kernel call for every few bytes,
no?  I think the point of that buffer is to be sure we accumulate a
reasonable number of bytes to pass to the kernel for each send().

            regards, tom lane



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

Предыдущее
От: Aleksei Ivanov
Дата:
Сообщение: Proposal: PqSendBuffer removal
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Allowing ALTER TYPE to change storage strategy