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 1q8hNT-0000mJ-1b for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2023 13:14:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q8hNR-0003Lx-KB for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Jun 2023 13:14:33 +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 1q8hNR-0003LV-Bm for pgsql-bugs@lists.postgresql.org; Mon, 12 Jun 2023 13:14:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q8hNO-001vgf-Nm for pgsql-bugs@lists.postgresql.org; Mon, 12 Jun 2023 13:14:32 +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 35CDEQED1166431; Mon, 12 Jun 2023 09:14:26 -0400 From: Tom Lane To: Michael Paquier cc: Nikolay Shaplov , pgsql-bugs@lists.postgresql.org, Kyotaro Horiguchi Subject: Re: BUG #17962: postgresql 11 hangs on poly_contain with specific data In-reply-to: References: <17962-4f00b6f26724858d@postgresql.org> <20230606.140749.1678060452808896223.horikyota.ntt@gmail.com> <20230606.141736.939081296219135931.horikyota.ntt@gmail.com> <31814440.0auUPBzOZ3@thinkpad-pgpro> Comments: In-reply-to Michael Paquier message dated "Mon, 12 Jun 2023 14:25:12 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1166429.1686575666.1@sss.pgh.pa.us> Date: Mon, 12 Jun 2023 09:14:26 -0400 Message-ID: <1166430.1686575666@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > Anyway, I am not really convinced that we need to do anything here, > either, knowing that v12 is able to fail early without relying on > check_stack_depth(), and that v11 will be EOL'd in a couple of > months. Yeah, I couldn't get excited about it either. The fact that an underflow check stops the loop seems a bit accidental. But the proposed patch is not noticeably less magic than that, and who's to say whether it doesn't cause unnecessary failures in other cases besides the one given? regards, tom lane