Re: Flushing large data immediately in pqcomm
Jelte Fennema-Nio <postgres@jeltef.nl>
From: Jelte Fennema-Nio <postgres@jeltef.nl>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Melih Mutlu <m.melihmutlu@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Heikki Linnakangas <hlinnaka@iki.fi>, Robert Haas <robertmhaas@gmail.com>, Thomas Munro <thomas.munro@gmail.com>, Ranier Vilela <ranier.vf@gmail.com>
Date: 2024-04-08T10:42:23Z
Lists: pgsql-hackers
Attachments
- v8-0001-Make-a-few-variables-size_t-in-pqcomm.c.patch (application/octet-stream) patch v8-0001
On Sun, 7 Apr 2024 at 14:41, David Rowley <dgrowleyml@gmail.com> wrote: > Looking at the code in socket_putmessage_noblock(), I don't understand > why it's ok for PqSendBufferSize to be int but "required" must be > size_t. There's a line that does "PqSendBufferSize = required;". It > kinda looks like they both should be size_t. Am I missing something > that you've thought about? You and Ranier are totally right (I missed this assignment). Attached is v8.
Commits
-
Avoid needless large memcpys in libpq socket writing
- c4ab7da60617 17.0 landed