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 1tXN9p-005vet-O8 for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2025 16:19:18 +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 1tXN9o-00BIxj-ES for pgsql-general@arkaria.postgresql.org; Mon, 13 Jan 2025 16:19:16 +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 1tXN9n-00BIxb-JO for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2025 16:19:16 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXN9m-000Cc2-1r for pgsql-general@lists.postgresql.org; Mon, 13 Jan 2025 16:19:15 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1A23D25400C9; Mon, 13 Jan 2025 11:19:13 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Mon, 13 Jan 2025 11:19:13 -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=1736785152; x=1736871552; bh=YbrunpUGLpLrKFmKNEB0zv6HxY+Tm6V6FS2RzC/hAv8=; b= NXl1AhxSjiB+9vH6a3y3QxTch7zfmw3hCgBI1ojC03cRgwLa+iM3pOGRxnaKVssB 5kBTKhz8moGIMoCfUlNdR0J+0pw3YMSXdHNIR97waO3LBO6LVIoslywlxZPiuF+F CFV2VML2GbEVtOQGfw5Sii4O6MZ3hdWkfaY3bGzrum1Yy1VoayPVxtWAgPCUaZyr RymCEVdMXbysRGj9Jgj2o0pppsdyPbPfSWZ1UA+x5PZ8PKkUeXCcl/xlAPDFoBkK sgX78cbsB3GGTikNwL5yiOp67Zpj40e11RrJ0saMadvuMi5i+OZK+ATrR0dZplii Ufvb2BlXFh+ulZ+pphC9fQ== 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=1736785152; x= 1736871552; bh=YbrunpUGLpLrKFmKNEB0zv6HxY+Tm6V6FS2RzC/hAv8=; b=H D2yhSZdz07yKWdNjPgLftxB0sQxOIWb+YlqFSl8ObCSYWhrr8cB5ufoQWqAp/gdn emkS/7pV7UC9NbeFMctijDvt2EQpnrqBIr6g8ardEhnsTcLyralVcJh/kQFyVbjM H4o6C2mbJEsa6CgNmMfJ4wrKPu4Quyek5fjRT3vO72rTQuEnRc9HkxdDdYOSsy7K JYL2HbnIdXbtlvZmjwg9FSAH5eQ4cYNYRDt/1HCF8iKXc7g/qSlpifb/y6ommjur YegHndWwyJAlzDYZuDCtMw+SPkROfXhOCg7Bnsm8olVCbOfDtKD6XXnPmBM3HcYZ yY4pJN/t2deY71Oiq6B9g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudehgedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhephfeviefhveelffeftdeh udekveefhfeftdegieefveetfffgfeehtdfftedutedtnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepvghstghhvghnohhnvgestghlvghishhtvggthhdrihhtpdhrtghpthht ohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hgpdhrtghpthhtohepmhgtrghtthhisegtlhgvihhsthgvtghhrdhithdprhgtphhtthho pehlphhiiiiiohhlohestghlvghishhtvggthhdrihht X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Jan 2025 11:19:11 -0500 (EST) Message-ID: Date: Mon, 13 Jan 2025 08:19:11 -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: <382a1eec-2069-4010-bbdb-37260a1a53a7@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 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? > > As a result, at the moment I'm not understood not only Why & Where the > error was occurring, but also Why it is disappeared. Errors that 'fix' themselves are the most frustrating kind, as you know in the back of your mind they will likely pop up again. > > Anyone may feel free to give me his opinion. > For the moment I'll make no other test unless the error is knocking back > to my door. That is all you can do. > > *Enrico Schenone* > Software Architect > -- Adrian Klaver adrian.klaver@aklaver.com