Proposal: PqSendBuffer removal

Поиск
Список
Период
Сортировка
От Aleksei Ivanov
Тема Proposal: PqSendBuffer removal
Дата
Msg-id CAN0E21MhOam5VJ9GVFsteFsaKQ3W9EVCBcbBmqqg6stYfDAGUw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Proposal: PqSendBuffer removal  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Atomics in localbuf.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: PqSendBuffer removal