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.94.2) (envelope-from ) id 1soWKG-00Bszc-S3 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Sep 2024 23:00:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1soWKG-009qyH-HS for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Sep 2024 23:00:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soWKG-009qwM-3r for pgsql-hackers@lists.postgresql.org; Wed, 11 Sep 2024 23:00:40 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1soWKC-000hmB-9I for pgsql-hackers@lists.postgresql.org; Wed, 11 Sep 2024 23:00:38 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-277efdcfa63so148672fac.2 for ; Wed, 11 Sep 2024 16:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1726095636; x=1726700436; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6JWpZ27/TOqquNioN0N4J0G+xQUBxZLqX6+SpfeNGFk=; b=i0VFTQ1zWE4Rfe7pL1BhHPhqv7wxTjYCWvDFR1ONEVgb98tnZjkOtEu/xs/VtL3dKE x8M28QCaYQ6X9k+CodKuSER7ieXi857I/pWDxKVlSMGzl9q8GGCDR9a8PSHgTRbix9Dw vzMiq0fUH9A5JQzgEEXBvYjz9fjBWBoQ2UP/cHmEsS3GtZ7az1nlHJoivEub8KW16Z8a pC0iQtRaj1ppTHN1K12K9fY4dSPCib4c2FcVm9Pxdd8W77nAKQZHRgHD/0vk+kn6hFMj fXrJLTxDBwD2Tsh0DjEsJVXLaaFhmbo9o0aslFDo1obKjauiNnPcKL2wZUdz6qouSEtn 34ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726095636; x=1726700436; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6JWpZ27/TOqquNioN0N4J0G+xQUBxZLqX6+SpfeNGFk=; b=aj1f/wz6EwerDyH4u4mtJi+uc8Gpa1pUXVrRavvGP4Y2Ytfp6U5tU11oh+iWMydWzV Ovj3HpSr6DSecV5rxeqDGpx5seAZAbep32obU2zz6jfxQrfc4cclu+8GuQNJ7/vwxHCp KQU4qymyKUxTY2O+I8Vm4b2UnyAmQOX1TyzK470JTu44qOlLXRvzXW6ZMX+j9MAFigEm vksoV13wzH4ueheaI8rgCFzq1JTnrgYswNMEbgotibbpSwZk1qLKXF+U4qhuHThD+De/ 65qE3Dmpcye9fWWEZTPN4xlSkjaScrGRk1sNeuIS/0dRZBun/Qyph1M1hcmuUqZWnzPk yHcw== X-Gm-Message-State: AOJu0YxLuAH0USWXU3TNBWnMtnUikqY2RYeqNspUTNDyQ6Kq+5qBJ8qZ nXF7/TaQs9cEpvcKrWw+BjlHo44Kn3SBHQh+tYp+uqzYOZjSveuLomLR0l5YbMTxUVmC5zTOhC2 UNDSBNWcd4/75/qULtmKxC0cJt54fAz7goybJGvYinQ+5cFM= X-Google-Smtp-Source: AGHT+IHCR3qhqYiC1G4WOz64E5eKdmbcYofiELG86q6eSKUGdozqYyD14YQ88apSpZlSk1nc76cJOZ3hHN75lh/vSTE= X-Received: by 2002:a05:6870:d695:b0:270:3139:59fe with SMTP id 586e51a60fabf-27c3f2b9e1bmr588517fac.12.1726095635763; Wed, 11 Sep 2024 16:00:35 -0700 (PDT) MIME-Version: 1.0 References: <2039ac58-d3e0-434b-ac1a-2a987f3b4cb1@greiz-reinsdorf.de> <68cb19fc-4a1c-473e-99e6-d83b99c2e245@greiz-reinsdorf.de> In-Reply-To: <68cb19fc-4a1c-473e-99e6-d83b99c2e245@greiz-reinsdorf.de> From: Jacob Champion Date: Wed, 11 Sep 2024 16:00:25 -0700 Message-ID: Subject: Re: libpq: Process buffered SSL read bytes to support records >8kB on async API To: Lars Kanis Cc: pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Sep 11, 2024 at 12:08=E2=80=AFPM Lars Kanis wrote: > How did you verify the issue on the server side - with YugabyteDB or > with a modified Postgres server? I'd like to verify the GSSAPI part and > I'm familiar with the Postgres server only. Neither, unfortunately -- I have a protocol testbed that I use for this kind of stuff. I'm happy to share once I get it cleaned up, but it's unlikely to help you in this case since I haven't implemented gssenc support. Patching the Postgres server itself seems like a good way to go. > > And are there any other sites that > > need to make the same guarantee before returning? > > Which other sites do you mean? I'm mostly worried that other parts of libpq might assume that a single call to pqReadData will drain the buffers. If not, great! -- but I haven't had time to check all the call sites. > > I need to switch away from this for a bit. Would you mind adding this > > to the next Commitfest as a placeholder? > > No problem; registered: https://commitfest.postgresql.org/50/5251/ Thank you! --Jacob