Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wh8CD-0001c0-0x for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 15:58:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wh8CB-001b2J-1v for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 15:58:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wh8CB-001b2B-0c for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 15:58:52 +0000 Received: from lahtoruutu.iki.fi ([2a0b:5c81:1c1::37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wh8C9-000000003o0-10PV for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 15:58:51 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4gvm9Z6wd8z49PxP; Tue, 07 Jul 2026 18:58:42 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1783439923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pq82hk1HU/Po+LTXTyv2J/l4PxCnpcAhsB1DMi8eiOc=; b=QmDFm1Rbkmj/p0BuRo1Rul8y1lENshHkhJTGmva0ffdZJugf64vqJnYkqqPQqC2orx7Evb PCbUS0kKWnxTmHCcBL+MypqDj31YFoajPZ+zQByKO5e7LQR7PSLU3Kiy3p7NiiqaslS5Kh pYRvJXzkFY1fDf7Tfe3Nlr6F5zwr/X4bassbdhVVkW2DuNfEe+T6nlqKzhfkiMD5KWfrQO tdaHsqa02zgQVNoQol7jMDvPlowbKJu7gklPzuKRtU+xwH4gX6a/hOZN4wj0/gRRn1oOxB SCBFsy9Zy0RAsOzNbkzk8QfQ6/wX+J8YS8OZWfPhGakib7VajDqIr+DZ6wqvVw== ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1783439923; b=rVl5CoUkEbLaGE+W94Rh1ZhZk6qKbmHzC0RkWklQ6AaBfBYZMYoWAONK8wlFewPKlWc3zD NtAP3+IkyMDEfMqME+TxyhdEviB7gnazuappfxnRFJ3t+5KcA3KGGlLlUrG9Jr/OgYURwt zLGaSuQ2GoIjbBXyGIEjjtVtOWcZNbj2jLJyYTbJXNQz0A6Jl1CJXqHd8DzmIZFcf5LjdQ AYtaOpwBZ9iZDRy1iZV/7rgqp23BBjsZIXKtl+Uz4kaPrnAX7Ki+T/n+/Lluw/uTnm+xZX N2yQynTVXfRM1eMFF0Yyl6LodR2075YwTF0x/4vHAmerR8CqNHXvTFDYObI/pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1783439923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pq82hk1HU/Po+LTXTyv2J/l4PxCnpcAhsB1DMi8eiOc=; b=JPMXblJYUybFVVjhanmDKjDEGJgFiGL5j3N9mF4uQ/ZY499K1U3FYVmGi3toW82kooCl+u M2kzvEFCOuRiOqOqclEExnnNcgzweznVcRHgxGuk+zSB3CtsEnnOL4/NcrS7ZlgYe9OzH+ 3n4tEgUqFdZ8rJnPUSByrfIBG0qhsbwGq8O7r8W6NaI2PyHaxZG6VA8RV9lleqTVjbFC4g Xz4YDwLhT2KKYO4CQU/VNPxMD07u1JPyR7jfePGau70pv0x9GYNWcrgwvvjaUVDRGfGKLD vR7btOX2ddytHa1lUJg69A8lCq7n10z0XWHxdwUipoMbePfHhfV8s8BG6rNQVQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi Message-ID: Date: Tue, 7 Jul 2026 18:58:42 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: libpq: Process buffered SSL read bytes to support records >8kB on async API From: Heikki Linnakangas To: solai v , Jacob Champion Cc: Mark Dilger , Andres Freund , Lars Kanis , pgsql-hackers@lists.postgresql.org, Merlin Moncure References: <2039ac58-d3e0-434b-ac1a-2a987f3b4cb1@greiz-reinsdorf.de> <57d1e8b1-d016-4cea-9b60-63cbdb40eb81@iki.fi> <990a4710-fed1-411a-aba4-ddc25825ee48@iki.fi> Content-Language: en-US In-Reply-To: <990a4710-fed1-411a-aba4-ddc25825ee48@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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