Re: BUG #19942: SIGSEGV crash (and wrong results) in MERGE ... RETURNING WITH (OLD/NEW) with VIRTUAL generated colum

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Cc: Tender Wang <tndrwang(at)gmail(dot)com>, 798604270(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19942: SIGSEGV crash (and wrong results) in MERGE ... RETURNING WITH (OLD/NEW) with VIRTUAL generated colum
Date: 2026-12-03 21:50:13
Message-ID: CAEZATCUP1V7rJ3PGKjeidC0E+6j8UxhfcZxcphB15G2HJCN-GA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, 26 Nov 2026 at 20:14, Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:
>
> I quickly checked patch - didn't spot any regression or functional
> bug. For tests part - maybe add regress for target virtual columns in
> WHEN and UPDATE action expressions, e.g.
> MERGE_WHEN_NOT_MATCHED_BY_SOURCE + MERGE_WHEN_NOT_MATCHED_BY_TARGET
> which uses FULL join? v2 changes nullable_relids for these but does
> not exercise this code path.

Thanks for reviewing. That makes sense. I updated the regression tests
to cover that.

Regards,
Dean

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-12-03 21:50:29 Re: btree_gist: <-> fails on same-sign infinite intervals
Previous Message Colin McDonnell 2026-12-03 21:32:02 Re: Anti-wraparound autovacuum stops for good after no slot available for new autovacuum worker process