Re: Proposal: PqSendBuffer removal - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal: PqSendBuffer removal
Date
Msg-id 24464.1583442655@sss.pgh.pa.us
Whole thread Raw
In response to Proposal: PqSendBuffer removal  (Aleksei Ivanov <iv.alekseii@gmail.com>)
Responses Re: Proposal: PqSendBuffer removal
List 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 by date:

Previous
From: Aleksei Ivanov
Date:
Subject: Proposal: PqSendBuffer removal
Next
From: Tomas Vondra
Date:
Subject: Re: Allowing ALTER TYPE to change storage strategy