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 1mGK6Y-0007Is-JD for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Aug 2021 11:51:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mGK6W-0007kP-B2 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Aug 2021 11:51:32 +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 1mGK6W-0007kA-4E for pgsql-bugs@lists.postgresql.org; Wed, 18 Aug 2021 11:51:32 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGK6T-0005ol-Gx for pgsql-bugs@lists.postgresql.org; Wed, 18 Aug 2021 11:51:31 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mGK6J-00034s-Au; Wed, 18 Aug 2021 07:51:19 -0400 Date: Wed, 18 Aug 2021 07:51:19 -0400 From: Bruce Momjian To: 253540651@qq.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17151: A SEGV in optimizer Message-ID: <20210818115119.GA13002@momjian.us> References: <17151-c03a3e6e4ec9aadb@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17151-c03a3e6e4ec9aadb@postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 18, 2021 at 02:53:07AM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 17151 > Logged by: Zhiyong Wu > Email address: 253540651@qq.com > PostgreSQL version: 14beta2 > Operating system: Linux version 5.13.0-1-MANJARO (builduser@LEGION) > Description: > > PoC: > CREATE TEMPORARY TABLE v0 ( v1 INTEGER ) ; > CREATE RULE v1 AS ON DELETE TO v0 DO INSERT INTO v0 SELECT OFFSET - - - -1 > FOR UPDATE FOR UPDATE FOR SHARE FOR UPDATE FOR SHARE FOR SHARE ; > ; > DELETE FROM v0 ; > ALTER TABLE v0 ADD UNIQUE ( v1 ) ; > ; I can confirm this failure on git master. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.