Hi,
Kirill Reshke <reshkekirill(at)gmail(dot)com> 于2026年11月26日周四 02:07写道:
> > This test case triggers a crash:
> > This test case triggers a wrong result:
> Looks like regression since 17550c8a
>
I confirmed that this is a regression introduced by 17550c8a change to
transform_MERGE_to_join(), which started applying the MERGE join’s
nulling relids to target Vars in the RETURNING list.
Skipping that step for JOIN_RIGHT makes both examples return the
expected results. I also confirmed that the crash still occurs with a
FULL JOIN.
I’m looking into the fix.
--
Tender Wang