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 1tOJU9-005WPK-Bq for pgsql-general@arkaria.postgresql.org; Thu, 19 Dec 2024 16:34:49 +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 1tOJU8-00F3OO-4z for pgsql-general@arkaria.postgresql.org; Thu, 19 Dec 2024 16:34:47 +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 1tOJU7-00F3Ne-M9 for pgsql-general@lists.postgresql.org; Thu, 19 Dec 2024 16:34:47 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOJU4-000PSt-Bd for pgsql-general@lists.postgresql.org; Thu, 19 Dec 2024 16:34:46 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 53228254015D; Thu, 19 Dec 2024 11:34:43 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 19 Dec 2024 11:34:43 -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=1734626083; x=1734712483; bh=6w4PydGkAR7hiT8llwu5BLT/c9u9K7QgZ/lJ23W/gZM=; b= Dqb1owuUiVThi3cbDLBA4RZMflM4g/FyRxarTGBVJmFLCxzJXJj4sy9DhsN7rzUF mHJ9TXoIbJblVZUP4Vj+1faLDvFBWz1JIPg42fuUzYJSFt2lK1B0SbkdLeYmSb0F zGLX+wfisBpuDF2ND/vmJ1UtatuOUROlCFewW5qoM9ufvkrOjnd2/93wakHAjuO/ lZO6LYWG034yi/9TGFX2VLmuNipi1qwo7LIN9uHp9LwsZcbzIAFydIHpkS96crhh esk8ACUdyY2eQpoUqrILtFKmydbbPRnId/7CbG03AwEV/rNnZ1N2i9rcCoHzZSWG KuT2pxWy07IioiSaySFu2w== 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=1734626083; x= 1734712483; bh=6w4PydGkAR7hiT8llwu5BLT/c9u9K7QgZ/lJ23W/gZM=; b=H NzcYlc1MDIryB2sxgkS5kwgKeKJ2Yi1aML6IcCcIxybL3yrr/BdxT1RTMuyw2tp+ jgjIYzlGGDeDHAgeMvfFglDHV+/dXUe63qTsJiGWNS595E4CxEsGK5FXaTq7+Wi2 FtCxu7nEFYrtO8rvg8t+c9yeq3vN0q1hJWW8HmSbt/YQdSbNrYMrWk+BDygKnCtK ml6R8TkKy/WumlQLAP/BXgYiPSOaSSJTQ5WshoNa1ZlheS/uzs9iB/Bv7aajbQgA n1fpwmcOdwWnsmB2nV77dDthjDzIsbtS8o4J/sB1cjtl04b8W3Y93aYjQtk0XO1W IgQfW76lmVWDGix23icEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddttddgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegoufhushhpvggtthffohhmrghinhculdegledmnecujfgurhep kfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcumf hlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecu ggftrfgrthhtvghrnhepheejffehvdekffektefhfeefgfevtdeltdeuhfekfeejkeeike evtdfhtefgtdetnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpghhruhhp phhotghlvghishdrihhtpdhisghmrdgsihiipdegjhhsrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgv rhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepvghstghhvghnohhnvgestghlvghishhtvggthhdrihhtpdhr tghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqh hlrdhorhhgpdhrtghpthhtohepmhgtrghtthhisegtlhgvihhsthgvtghhrdhithdprhgt phhtthhopehlphhiiiiiohhlohestghlvghishhtvggthhdrihht X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Dec 2024 11:34:41 -0500 (EST) Message-ID: <9f60eb26-7d34-4228-bd78-74c6deb90e54@aklaver.com> Date: Thu, 19 Dec 2024 08:34:41 -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> Content-Language: en-US From: Adrian Klaver In-Reply-To: <6ce80aaa-970b-4432-938a-39a07f811599@cleistech.it> 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 12/18/24 23:52, Enrico Schenone wrote: > Good day, Adrian. > First of all I thank-you for you answer. > At the time the error occurs, dozens of other SQL sessions are active & > running on DB server, and no-one is reporting any error at-all (not only > fetch errors). > This happens sometimes also in system with no (or low) stress situations. > > One of things I don't understand is why at client side I get the XX001 > error on the FETCH (normally the first fetch) while at server side I > heve no error related to the fetch forward ? Where are you fetching the client error messages from? > Another is why in the meantime no other client application report an > error, considering that there may be several parallel instances of the > same client application ? > And finally why after seconds or minutes the same process newly > instantiated works with no more errors ? Answers to this and the below is going to need the client code. > > I can suppose that the client closes the connection once got the XX001 > error, but I can't say why it receives this error while it is not > reported at server side and not block i/o error is reported. > Is it a false positive or what ? > > Four Js support said vendor. In the case of PostgreSQL, we use the C API client - > https://www.postgresql.org/docs/current/libpq.html > > > At client side I have installed the following PostgreSQL packages ... > >     postgresql-client-16:amd64/jammy-pgdg 16.5-1.pgdg22.04+1 > upgradeable to 16.6-1.pgdg22.04+1 >     postgresql-client-common:all/jammy-pgdg 262.pgdg22.04+1 upgradeable > to 267.pgdg22.04+1 > > Best regards. > Enrico > > > *Enrico Schenone* > Software Architect > > *Cleis Tech s.r.l.* - www.gruppocleis.it > Sede di Genova, Via Paolo Emilio Bensa, 2 - 16124 Genova, ITALY > Tel: +39-0104071400   Fax: +39-0104073276 > Mobile: +39-320 7709352 > E-mail: eschenone@cleistech.it > > > > > > Il 19/12/24 00:11, Adrian Klaver ha scritto: >> On 12/17/24 08:30, Enrico Schenone wrote: >>> Good day. >>> My name is Enrico Schenone, from Genoa, Italy. >>> I'm a software achitect working at Cleis Tech - Genoa - Italy  - >>> http://gruppocleis.it >>> Me and my team are using PostgreSQL v12 to v16 on Debian 10-12 and >>> Ubuntu Server 22.04 LTS with no-cluster configuration. >>> Our applications are developed with 4Js Genero platform (classified >>> as LCAP) - https://4js.com >>> >>> I whish to report an issue where I can't say if it happens at server >>> or client side (or both as well). >> >> This: >> >> "unexpected EOF on client connection " >> >> makes me believe this is on client side. >> >> To be clear the client is running on Ubuntu Server 22.04, correct? >> >> Have you looked at the OS system log for relevant entries at the time >> the error occurs? >> >> If so what are they? >> >> This only happens in production environment, is there anything in it >> that is materially different from where you ran the test below? >> >> >>> Hoping you can help me or address to someone who can do it. >>> Thanks in advance. >>> Enrico >>> -- >>> >>> *Enrico Schenone* >>> Software Architect >>> >> > -- Adrian Klaver adrian.klaver@aklaver.com