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 1tXOCi-0063Va-Dy for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2025 17:26:21 +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 1tXOCg-00BtOC-U6 for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2025 17:26:19 +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 1tXOCf-00BtO3-H0 for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2025 17:26:19 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXOCb-000DFI-3D for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2025 17:26:17 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1DB932540082; Mon, 13 Jan 2025 12:26:12 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Mon, 13 Jan 2025 12:26:12 -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=fm1; t=1736789171; x=1736875571; bh=YfNErFJ+fWAcs29IIh5sVcViv003jQaYoNZK32LeE2I=; b= Gn6XW9Gg28qhBxHJouR2JaMr0erNBClPoRA5hZHaD5VIUlcM7usAOXICC2S4tHfa SgkVd+lRDwBPwEjkYVhrAbwZTQUUM6e0RzkGHQRVh20koZi1SHCDgo5o9zhJwawU WiNurWSLwoQww3un6kW1MRwnbCnVL98bHO/abfYO1tOHwgwwPu3ClPE51ppNPhGh EY0/KIhN13QXocm+PozVVuqD3h96aWQbJnqk/aQyY1VdWXoKK9DhPPRz/GlK7h5D DG4M8ucBg6dPHugQUWgG556mpAMeEPBWA8/R5tmtXUwE16iAuhZ7ovUgezg7hDOk tKWDyV5qLNJqLkU6Eue2zQ== 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=fm2; t=1736789171; x= 1736875571; bh=YfNErFJ+fWAcs29IIh5sVcViv003jQaYoNZK32LeE2I=; b=Z VW1sQNAUX+Q0B7LhCAZr1r7saJkMgOh7mC8PnYj6pBqBQjV40gwe/ffc3qzLhi4o EUma6Mbtib3WfasZMVqPp4hQN/nw/qXIZFOi+FTFEhJibU0tcAwVxYbOMYseSXLd 4PDEmbqFkZ5EqC2WUGsAvv84E7nqWROkJWeWKcB96d+GJbotlaISFlvGkqdwXl7u D/YYqBJbm86ykiMVXsMofxC3RmLvT0Js6x2xSYF97F7PfPLcCa74mGPeakETXvQ0 LRMtjY+ohtYYTuk/1uef+ebODMIqUDS2NmVVH8cCuHNQgS4I7B2zWZ5oiAJnqhUG cqAMQn/yWdHhD6SE0L9yA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudehgedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddv jeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfet gefgheekjeehteeileeigfetieekjedvieeviefgheevtdenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegr khhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopegvshgthhgvnhhonhgvsegtlhgvihhsthgvtghhrdhithdprhgtphht thhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdroh hrghdprhgtphhtthhopehmtggrthhtihestghlvghishhtvggthhdrihhtpdhrtghpthht oheplhhpihiiiiholhhosegtlhgvihhsthgvtghhrdhith X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Jan 2025 12:26:10 -0500 (EST) Message-ID: <8d65f84d-ddb3-4d0f-be05-44f443500e41@aklaver.com> Date: Mon, 13 Jan 2025 09:26:09 -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> <382a1eec-2069-4010-bbdb-37260a1a53a7@cleistech.it> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/13/25 08:59, Enrico Schenone wrote: > > Il 13/01/25 17:19, Adrian Klaver ha scritto: >> On 1/13/25 00:45, Enrico Schenone wrote: >>> Hello, Adrian. >>> As I said days ago, I have arranged a kind of stress test in >>> production environment. >>> I wrote a program that loads a temporary table, loads 2049 rows into >>> them from a baseline_table and finally declare two nested cursors. >>> The first cursor is on the temp table as parent while the second is >>> on a lookup table as child. >>> >>> The program logic is the transposition of one fragment of several >>> production programs that was failing on cursors, and has to be >>> intended as a POC only. >>> >> >> >>> And Well, I'm quite confused: no error at all has been detected, not >>> only on the test programs but in the whole production system. The >>> error was completely disappeared. >>> >>> Then I have stopped the four tasks of the stress test leaving all >>> other services running for a week, and again no error at all. >>> >>> No setup was changed nor servers was rebooted, nor infrastructure has >>> been upgraded during the test period. >> >> You are absolutely sure about the above? > I can say Yes. All test operations has been logged and verified against > the Postgresql log. > The only component not under my control is the Provider's > Infrastructure, but  the infrastructure admin ensured me that no > operation at all has been made. I beleave him because it is a reliable > tecnician end a well known person. In your OP you stated: "Production environments can be: * Distinct application server and DB server on distinct subnets (no dropped packet detected on firewall, no memory/disk/network failure detected by "nmon" tool) * Distinct application server and DB server on same subnet (no firewall) * Same server for PostgreSQL and applications " In all those cases are the various servers all running completely within the providers infrastructure? >> Errors that 'fix' themselves are the most frustrating kind, as you >> know in the back of your mind they will likely pop up again. > True, knocking again to my door ... I still can't beleave. Going forward one of three things are likely to happen: 1) The error never shows again. 2) It does show up again but in a manner that allows it to be traced. 3) The worst case, it plays hide and seek as previously. > Thanks a lot for your interest in sharing my strange experience. > Best regards. > Enrico > > *Enrico Schenone* > Software Architect -- Adrian Klaver adrian.klaver@aklaver.com