Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOMhH-0004op-Qj for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Sep 2021 16:14:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mOMhG-0004rJ-Kq for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Sep 2021 16:14:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOMhG-0004rB-DN for pgsql-bugs@lists.postgresql.org; Thu, 09 Sep 2021 16:14:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOMhE-0003Vq-6j for pgsql-bugs@postgresql.org; Thu, 09 Sep 2021 16:14:42 +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 189GEbWa3684714; Thu, 9 Sep 2021 12:14:37 -0400 From: Tom Lane To: Tomas Barton cc: pgsql-bugs@postgresql.org Subject: Re: Segmentation fault on postgresql 13.4, 12.8 with function call in a cursor In-reply-to: References: Comments: In-reply-to Tomas Barton message dated "Thu, 09 Sep 2021 14:50:00 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3684712.1631204077.1@sss.pgh.pa.us> Date: Thu, 09 Sep 2021 12:14:37 -0400 Message-ID: <3684713.1631204077@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Barton writes: > a recent change in postgresql is causing a segfault when a function is > called in filter section, e.g. with a plan like this: Ugh, thanks. PersistHoldablePortal isn't being cautious about re-executing a plan that already reached completion. Will fix. regards, tom lane