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 1pnhq2-0000ze-Ii for pgsql-bugs@arkaria.postgresql.org; Sat, 15 Apr 2023 15:29:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pnhq1-0001qg-G4 for pgsql-bugs@arkaria.postgresql.org; Sat, 15 Apr 2023 15:29:17 +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 1pnhmz-0006FB-El for pgsql-bugs@lists.postgresql.org; Sat, 15 Apr 2023 15:26:09 +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 1pnhmw-0034DC-Oy for pgsql-bugs@lists.postgresql.org; Sat, 15 Apr 2023 15:26:08 +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 33FFQ4tV1716432; Sat, 15 Apr 2023 11:26:04 -0400 From: Tom Lane To: Dmitry Dolgov <9erthalion6@gmail.com> cc: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17897: Crash on assignment to array of constraint-less domain over composite type In-reply-to: <20230415151709.jh7ygoak2fc2msdb@erthalion.local> References: <17897-4216c546c3874044@postgresql.org> <20230415151709.jh7ygoak2fc2msdb@erthalion.local> Comments: In-reply-to Dmitry Dolgov <9erthalion6@gmail.com> message dated "Sat, 15 Apr 2023 17:17:09 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1716430.1681572364.1@sss.pgh.pa.us> Date: Sat, 15 Apr 2023 11:26:04 -0400 Message-ID: <1716431.1681572364@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dmitry Dolgov <9erthalion6@gmail.com> writes: >> On Fri, Apr 14, 2023 at 07:00:01PM +0000, PG Bug reporting form wrote: >> The following modified excerpt from regress/sql/domain.sql: >> ... >> causes a server crash with the following stack trace: >> [...] >> Not reproduced on REL_11_STABLE, but reproduced on REL_12_STABLE .. master >> since 04fe805a1 made a constraint-less domain represented as a RelabelType >> (not CoerceToDomain) and thus the fix for [1] (ae7b1dd59) doesn't cover >> this case. > Looks like it could be fixed in the same way as in ae7b1dd59 ? Agreed, that seems like the obvious fix. Thanks for the report, and for the investigation! regards, tom lane