Re: BUG #17897: Crash on assignment to array of constraint-less domain over composite type - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17897: Crash on assignment to array of constraint-less domain over composite type
Date
Msg-id 1716431.1681572364@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17897: Crash on assignment to array of constraint-less domain over composite type  (Dmitry Dolgov <9erthalion6@gmail.com>)
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: BUG #17897: Crash on assignment to array of constraint-less domain over composite type
Next
From: Tom Lane
Date:
Subject: Re: 1. PostgreSQL Server Subprocess Went down at function 'pg_detoast_datum_packed'