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 1uO6RL-00ExKy-KA for pgsql-bugs@arkaria.postgresql.org; Sun, 08 Jun 2025 03:11:19 +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 1uO6RI-00GZbc-Lg for pgsql-bugs@arkaria.postgresql.org; Sun, 08 Jun 2025 03:11:17 +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 1uO6RI-00GZbS-DP for pgsql-bugs@lists.postgresql.org; Sun, 08 Jun 2025 03:11:17 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uO6RH-000oBF-0W for pgsql-bugs@lists.postgresql.org; Sun, 08 Jun 2025 03:11:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5583BBag089145; Sat, 7 Jun 2025 23:11:11 -0400 From: Tom Lane To: Lowell Hought cc: Laurenz Albe , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18950: pgsql function that worked in Postgresql 16 does not return in Postgresql 17 In-reply-to: References: <75D714EA-CD1E-4F80-A2E8-29E378EC2200@gmail.com> <81946.1749348479@sss.pgh.pa.us> Comments: In-reply-to Lowell Hought message dated "Sat, 07 Jun 2025 22:04:03 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <89143.1749352271.1@sss.pgh.pa.us> Date: Sat, 07 Jun 2025 23:11:11 -0400 Message-ID: <89144.1749352271@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Lowell Hought writes: > Changing that parameter had no effect on the version 17 instance. The > query itself produces results in a matter of a second or so, but the > function still hangs and does not return. Darn. But I'm still pretty sure that the problem is an undesirable change of plan, and that we don't have enough information to say more than that. Any chance you could extract a self-contained test case? regards, tom lane