Proposal: PqSendBuffer removal - Mailing list pgsql-hackers

From Aleksei Ivanov
Subject Proposal: PqSendBuffer removal
Date
Msg-id CAN0E21MhOam5VJ9GVFsteFsaKQ3W9EVCBcbBmqqg6stYfDAGUw@mail.gmail.com
Whole thread Raw
Responses Re: Proposal: PqSendBuffer removal
List pgsql-hackers
Dear community,

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.
It is possible to directly send messages from StringInfo to client. For example: allocate more bytes from the beginning and fill out it before sent to client.

Maybe there was already discussion about it or if I missing something please fill free to correct me.

Thank you in advance!

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Atomics in localbuf.c
Next
From: Tom Lane
Date:
Subject: Re: Proposal: PqSendBuffer removal