Re: BUG #19056: ExecInitPartitionExecPruning segfault due to NULL es_part_prune_infos

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: feichanghong <feichanghong(at)qq(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, David Rowley <dgrowleyml(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19056: ExecInitPartitionExecPruning segfault due to NULL es_part_prune_infos
Date: 2025-09-18 06:20:20
Message-ID: CA+HiwqHtVVfzxdbNCHpveHQRGLT_EJ2fSoKc2Z8Dhdxt1Gg+RQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Sep 18, 2025 at 3:15 PM feichanghong <feichanghong(at)qq(dot)com> wrote:
> On Sep 18, 2025, at 14:09, Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
>
> On Thu, Sep 18, 2025 at 1:56 PM Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
>
> On Thu, Sep 18, 2025 at 1:11 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>
> David Rowley <dgrowleyml(at)gmail(dot)com> writes:
>
> On Thu, 18 Sept 2025 at 15:37, Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
>
> +# Test that EState.es_part_prune_infos is properly set in EvalPlanQualStart()
> +# Bug #19056
>
>
> I don't think it's that useful to note down the bug number that caused
> that test to be added.
>
>
> We're inconsistent about whether we do that or not, but it's
> far from un-heard-of. I just today pushed a patch in which
> I did mention the bug# in the test case [1], and I did so
> mostly because the adjacent test case had a similar comment.
> So I see no reason to object to Amit's usage.
>
>
> I was just mimicking a few other "cf bug #" mentions in
> eval-plan-qual.spec, but I'm fine to take it out if we'd prefer to
> reduce that. Git blame is enough.
>
> I think it'd be better to write something like:
> "Exercise run-time partition pruning code in an EPQ plan"
>
>
> Not expressing an opinion about whether that's better or
> worse than Amit's lede.
>
>
> What I added is:
>
> # Test that EState.es_part_prune_infos is properly set in EvalPlanQualStart()
>
> I'm fine to change the comment to David's suggestion since that makes
> the test description less narrowly tied to one fix of one specific
> issue in that path.
>
>
> Patch updated.
>
> +# EState.es_part_prune_infos bug #19056

Oops, coffee deficiency. Updated again.

--
Thanks, Amit Langote

Attachment Content-Type Size
v5-0001-Fix-EPQ-crash-from-missing-partition-pruning-stat.patch application/octet-stream 4.6 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2025-09-18 07:05:55 Re: BUG #19056: ExecInitPartitionExecPruning segfault due to NULL es_part_prune_infos
Previous Message feichanghong 2025-09-18 06:15:15 Re: BUG #19056: ExecInitPartitionExecPruning segfault due to NULL es_part_prune_infos