Re: BUG #18871: Cross-partition MERGE fails with unclear internal error - Mailing list pgsql-bugs

From Dean Rasheed
Subject Re: BUG #18871: Cross-partition MERGE fails with unclear internal error
Date
Msg-id CAEZATCUdWL6Mv96SZ4atKudkz67Uv+LbO0BXoZVmLu-d=kpUaw@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18871: Cross-partition MERGE fails with unclear internal error  ("Gurjeet Singh" <gurjeet@singh.im>)
Responses Re: BUG #18871: Cross-partition MERGE fails with unclear internal error
List pgsql-bugs
On Sat, 29 Mar 2025 at 05:54, Gurjeet Singh <gurjeet@singh.im> wrote:
>
> On Fri Mar 28, 2025 at 7:39 PM PDT, Tender Wang wrote:
>
> > In ExecInitPartitionInfo(), it has comments like:
> >
> > * This duplicates much of the logic in ExecInitMerge(), so something
> > * changes there, look here too.
> >
> I would've expecetd the comment to be in ExecInitMerge(), asking the
> reader to look at other places the logic is duplicated.
>

There already is such a comment a little further up in
ExecInitMerge(), so I didn't bother repeating it.

I've committed the fix, except that I put the test case in merge.sql,
since part_abc_view doesn't exist in back branches of
partition_prune.sql, and it feels more like a MERGE bug anyway.

Thanks, all.

Regards,
Dean



pgsql-bugs by date:

Previous
From: "Gurjeet Singh"
Date:
Subject: Re: BUG #18871: Cross-partition MERGE fails with unclear internal error
Next
From: Tender Wang
Date:
Subject: Re: BUG #18871: Cross-partition MERGE fails with unclear internal error