Re: UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Zhihong Yu
On Tue, Oct 19, 2021 at 10:04 AM Tom Lane wrote: > [ please do not quote the entire thread when replying ] > > Zhihong Yu writes: > > Here is the patch. > > This patch seems quite misguided to me. The proximate cause of > the crash is that we're arriving at ExecEvalFieldStoreDeForm with > *op->

Re: UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Tom Lane
[ please do not quote the entire thread when replying ] Zhihong Yu writes: > Here is the patch. This patch seems quite misguided to me. The proximate cause of the crash is that we're arriving at ExecEvalFieldStoreDeForm with *op->resnull and *op->resvalue both zero, which is a completely invali

Re: UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Japin Li
On Tue, 19 Oct 2021 at 23:17, Zhihong Yu wrote: > On Tue, Oct 19, 2021 at 2:12 AM Zhihong Yu wrote: > >> >> >> On Tue, Oct 19, 2021 at 12:39 AM Onder Kalaci >> wrote: >> >>> Hi hackers, >>> >>> >>> >>> I couldn’t find a similar report to this one, so starting a new thread. I >>> can reproduce

Re: UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Zhihong Yu
On Tue, Oct 19, 2021 at 2:12 AM Zhihong Yu wrote: > > > On Tue, Oct 19, 2021 at 12:39 AM Onder Kalaci > wrote: > >> Hi hackers, >> >> >> >> I couldn’t find a similar report to this one, so starting a new thread. I >> can reproduce this on v14.0 as well as PostgreSQL 12.5 (not tried below >> vers

Re: UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Japin Li
On Tue, 19 Oct 2021 at 17:12, Zhihong Yu wrote: > On Tue, Oct 19, 2021 at 12:39 AM Onder Kalaci wrote: > >> Hi hackers, >> >> >> >> I couldn’t find a similar report to this one, so starting a new thread. I >> can reproduce this on v14.0 as well as PostgreSQL 12.5 (not tried below >> versions).

Re: UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Zhihong Yu
On Tue, Oct 19, 2021 at 12:39 AM Onder Kalaci wrote: > Hi hackers, > > > > I couldn’t find a similar report to this one, so starting a new thread. I > can reproduce this on v14.0 as well as PostgreSQL 12.5 (not tried below > versions). > > > > Steps to reproduce: > > > > CREATE TYPE two_ints as (

UPDATE on Domain Array that is based on a composite key crashes

2021-10-19 Thread Onder Kalaci
Hi hackers, I couldn’t find a similar report to this one, so starting a new thread. I can reproduce this on v14.0 as well as PostgreSQL 12.5 (not tried below versions). Steps to reproduce: CREATE TYPE two_ints as (if1 int, if2 int); CREATE DOMAIN domain AS two_ints CHECK ((VALUE).if1 > 0); CREA