Re: libpq: Process buffered SSL read bytes to support records >8kB on async API

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: solai v <solai.cdac@gmail.com>, Jacob Champion <jacob.champion@enterprisedb.com>
Cc: Mark Dilger <mark.dilger@enterprisedb.com>, Andres Freund <andres@anarazel.de>, Lars Kanis <lars@greiz-reinsdorf.de>, pgsql-hackers@lists.postgresql.org, Merlin Moncure <mmoncure@gmail.com>
Date: 2026-07-07T15:58:42Z
Lists: pgsql-hackers
On 03/07/2026 12:25, Heikki Linnakangas wrote:
> On 14/05/2026 07:32, solai v wrote:
>> Hi,
>> i tested the latest V3 patch series on current postgreSQL HEAD with 
>> SSL enabled.The patches applied cleanly,build succeeded,and the server 
>> started successfully.I ran the async libpq test repeatedly and also 
>> tested large COPY TO STDOUT operations over SSL.I did not observe 
>> hangs,crashes,or visible regressions during testing.
> 
> Thanks for the testing!
> 
> Here's another patch version, with some small comment and commit message 
> changes, and I split the changes slightly differently between the two 
> patches. End result is otherwise the same.
> 
> I plan to commit this in the next few days.

Committed and backpatched to all supported versions. Thanks everyone!

- Heikki




Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Remove incorrect Assert.