Re: BUG #18830: ExecInitMerge Segfault on MERGE

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Tender Wang <tndrwang(at)gmail(dot)com>
Cc: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, David Rowley <dgrowleyml(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org, tharakan(at)gmail(dot)com
Subject: Re: BUG #18830: ExecInitMerge Segfault on MERGE
Date: 2025-03-13 12:44:44
Message-ID: CA+HiwqH6g+AFpxczPPB-gyhbqiPqSa=V0j-_T15JomtbxpU6hA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Mar 13, 2025 at 4:29 PM Tender Wang <tndrwang(at)gmail(dot)com> wrote:
> Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> 于2025年3月13日周四 03:23写道:
>> It does mean that ExecGetRangeTableRelation() needs to allow pruned
>> relations to be opened, if called from ExecInitResultRelation(). I
>> think that's OK because the check for opening pruned relations still
>> applies to scan relations.
>
> A comment in execPartition.h may need to be changed:
> * partrel Partitioned table Relation; obtained by
> * ExecGetRangeTableRelation(estate, rti), where
>
> Because the func interface has changed, the above comments are better to be changed "ExecGetRangeTableRelation(estate, rti, false)".

Noted, thanks.

--
Thanks, Amit Langote

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dean Rasheed 2025-03-13 14:42:10 Re: BUG #18830: ExecInitMerge Segfault on MERGE
Previous Message Amit Langote 2025-03-13 12:44:09 Re: BUG #18830: ExecInitMerge Segfault on MERGE