Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovgWC-0006Pl-Ob for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Nov 2022 15:09:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovgWB-00018T-1L for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Nov 2022 15:09:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovgWA-00014W-Na for pgsql-hackers@lists.postgresql.org; Thu, 17 Nov 2022 15:09:30 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovgW8-0007WJ-89 for pgsql-hackers@lists.postgresql.org; Thu, 17 Nov 2022 15:09:29 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8950F5C082E; Thu, 17 Nov 2022 10:09:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 17 Nov 2022 10:09:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1668697767; x= 1668784167; bh=hBAl/NwhhGc/u00YOldpz6exR8XFCKSEwaYLlHDKgE0=; b=x LhQfk+qoC+tj0KhTB11RhaN1qu85FQ3oVUJ90ofXn9D88haJxx4ghQ6tvuGY7i3e ZPnTxG6wIKnj464vidW/YhiF0L6B55IM+Tvsgup2gSCMNzpDnpTgstzWacHclcts SVGBeizxxV/YnyReACdlxa4EejR1fWwwF+Hed+vdlv7BYOE9fM98v5ybpXhA2YF9 pZUQ5Skew+qsFXNyBvfMqfprtjgYURNBmyEcGcJ2Febe8QkdhM1HPQ8oPGfrYb6j Ut9pMiZmjv1glebGI8mTV5xM195rEW+u96QSvSzpufUplf9h4xKiu8ygSl5tnP2f lJoMbuh+SlE87dmPTsYiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeekgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeetiefh leetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Nov 2022 10:09:23 -0500 (EST) Message-ID: <4fab82d1-a0f5-0d01-4d6c-0b780b5eea3a@enterprisedb.com> Date: Thu, 17 Nov 2022 16:09:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: libpq compression (part 2) Content-Language: en-US To: Andrey Borodin , Justin Pryzby Cc: Jacob Champion , Daniil Zakhlystov , pgsql-hackers@lists.postgresql.org, Andrey Borodin References: <20220113235827.GM14051@telsasoft.com> <18CFC392-0391-4439-9F02-FC1CF02FFA24@yandex-team.ru> <20220118043919.GA23027@telsasoft.com> <20220302213352.GA27651@telsasoft.com> <20221116031728.GI26337@telsasoft.com> From: Peter Eisentraut In-Reply-To: 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 17.11.22 01:27, Andrey Borodin wrote: > Also I've found one more TODO item for the patch. Currently in > fe-connect.c patch is doing buffer reset: > conn->inStart = conn->inCursor = conn->inEnd = 0; > This effectively consumes butes up tu current cursor. However, packet > inspection is continued. The patch works because in most cases > following code will issue re-read of message. Coincidentally. > /* Get the type of request. */ > if (pqGetInt((int *) &areq, 4, conn)) > { > /* We'll come back when there are more data */ > return PGRES_POLLING_READING; > } Note that the above code was just changed in dce92e59b1. I don't know how that affects this patch set.