Re: BUG #19802: MERGE into a partitioned table fails with "SubPlan found with no parent plan"

From: Tender Wang <tndrwang(at)gmail(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: gowthamdoma18(at)gmail(dot)com, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Subject: Re: BUG #19802: MERGE into a partitioned table fails with "SubPlan found with no parent plan"
Date: 2026-11-04 11:25:42
Message-ID: CAHewXNkB_5CSZAVmUKh5TWGLr06veq7XP6b9xwEFPehy1VyKyg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Dilip Kumar <dilipbalaut(at)gmail(dot)com> 于2026年11月4日周三 18:49写道:
>
> I think your analysis and fix LGTM. Can you also add a test case so
> that we do not break this in the future? Thanks.
>

Thanks for the review.
I added the regression test in the attached v2 patch.

--
Thanks,
Tender Wang

Attachment Content-Type Size
v2-0001-Fix-MERGE-into-partitioned-tables-with-SubPlans-i.patch text/plain 3.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Robins Tharakan 2026-11-04 11:30:34 Re: BUG #19827: postgres_fdw: Assert in add_foreign_ordered_paths() with redundant ORDER BY in set-op input
Previous Message Dilip Kumar 2026-11-04 10:48:44 Re: BUG #19802: MERGE into a partitioned table fails with "SubPlan found with no parent plan"