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 1tOg6R-007zmo-Dl for pgsql-general@arkaria.postgresql.org; Fri, 20 Dec 2024 16:43:51 +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 1tOg6Q-00DmE4-OC for pgsql-general@arkaria.postgresql.org; Fri, 20 Dec 2024 16:43:50 +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.94.2) (envelope-from ) id 1tOg6Q-00DmDw-DV for pgsql-general@lists.postgresql.org; Fri, 20 Dec 2024 16:43:50 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOg6M-000mZj-Q7 for pgsql-general@lists.postgresql.org; Fri, 20 Dec 2024 16:43:49 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id EB8131380257; Fri, 20 Dec 2024 11:43:45 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 20 Dec 2024 11:43:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1734713025; x=1734799425; bh=7SwYRJ8+JPUmva4WBueoBeipimEp11qMY6NoEKt7+MM=; b= I13uVV1ByrQi7q8IAUFYKE9y04/K5f+Sz6gTP5Wdlv/3gHG235gK+pQ5hWpeK6Ig WDyzO9Viy2JmgUvxS4gyga1KfvXqPye5cQl/id3HNT2rfY9n0346P+wVp9mWT4nY +XM9weQnMLm7APB9p1IWFc/GJG/vegIUqR2+5/LpYYP1QqC/UrGqFnmJIhwbXICB TrlIWOXwSsP3X+ZmhFTxoGreKmqQIIi/t9mmDxzrbFQS7Bd3y/rvnE+wzVvERegX ZkO1sKac8EhTeNBcdJnlsS3/CvvhXc/+J+ATk7KXGe+Z+RA6DNsb91qVLYB7Vdpa muOnDEUxH7azS0njrQxZeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734713025; x= 1734799425; bh=7SwYRJ8+JPUmva4WBueoBeipimEp11qMY6NoEKt7+MM=; b=k cuTQ/kpXZcVKaoekV87c6eVkOuc3tbQwnUS1RPKsMMC0M/VYTYgH5E+BlQemSmkL 3oRtK2N5W0aaqrQrK6PANJvrUO1nlVpvL+GReJbrSHO+lFhAhixHCQzeUzXVaE2B OzApz3vpYHEq8xI/tMIwo/sj0qBr59px6e30r/CpjqTM6VLIA9QsPAOvTIUDn6pM lqrY/5aU3a4QKAYEymcoEdZLAV7ewQnjNUV903W+YsbeyFiVqZ3vW23yqtzmRN54 DQ6L6giaNFmYu8P8CMVsORl0k5+4mpLlAM3yS+4IisHG4G/ENAYpOZ60jrJR/Thm /fdbeIr6Bgo3WQGdSZH4w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtvddgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepgfduffeiffdtfeefudfh hfffgeekvedtvdekgfehtedtgfegfeejueetveduteegnecuffhomhgrihhnpegtlhgvih hsthgvtghhrdhithenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprh gtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvshgthhgvnhho nhgvsegtlhgvihhsthgvtghhrdhithdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrg hlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehmtggrthht ihestghlvghishhtvggthhdrihhtpdhrtghpthhtoheplhhpihiiiiholhhosegtlhgvih hsthgvtghhrdhith X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Dec 2024 11:43:45 -0500 (EST) Message-ID: Date: Fri, 20 Dec 2024 08:43:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16 To: Enrico Schenone , pgsql-general@lists.postgresql.org Cc: Massimo Catti , Livio Pizzolo References: <446423eb-4a4e-4135-bbb8-4d0e5c7aac3b@cleistech.it> <25d5fb16-9bb2-4ad1-969c-eaca03ccbaaf@aklaver.com> <6ce80aaa-970b-4432-938a-39a07f811599@cleistech.it> <9f60eb26-7d34-4228-bd78-74c6deb90e54@aklaver.com> <282c2a48-bb12-4486-b03d-563523cac81b@cleistech.it> <2645a89e-d661-4f2b-92b3-01154a78d535@aklaver.com> <54689a6a-839c-44c4-90b5-b9692e8e7cb0@aklaver.com> <4efe42a2-789c-4957-a564-25199869f6ec@cleistech.it> Content-Language: en-US From: Adrian Klaver In-Reply-To: <4efe42a2-789c-4957-a564-25199869f6ec@cleistech.it> 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 12/20/24 07:02, Enrico Schenone wrote: > Hi, Adrian. > Today I have collected a tcpdump at client side with communications > between application server and db server while the issue was occurring > one time per second on another program. > I send you two files. > The first one is a zipped tarball (.tgz) containing a text > representation of the tcpdump starting at point where it reports the > declaration of the failing cursor ("cu4" as you can see in the first > line of the file) and subsequent fetch. Consider that the client > application log detected the XX001 error on the first FETCH of the > cursor at 2024-12-20 12:17:35.175 > The second file (zipped tarball .tgz) is too big to be sent as > attachment, so I provide a link where it can be downloaded. It is the > fraction of tcpdump recorded during the program failure (occurred > several times). It is in .pcap format so it is possible to open it with > Wireshark or tcpdump -A -r > Anyone interested can download it at > https://cleislabs.cleistech.it/downloads/tcpdump_out009.pcap.tgz > > Consider that during the dump several different cursor was declared with > the name "cu4", but the one failing is the one of the first line. > Maybe an expert (I'm not so expert) can see if the disconnection is > really made by the client and/or if the data returned by the server are > really corrupted as per XX001 SQLSTATE. This is beyond me, someone else will need to chime in. > > Best regards. > Enrico > > Il 19/12/24 22:47, Adrian Klaver ha scritto: -- Adrian Klaver adrian.klaver@aklaver.com