Re: pgsql: Fix EPQ crash from missing partition directory in EState - Mailing list pgsql-committers

From Amit Langote
Subject Re: pgsql: Fix EPQ crash from missing partition directory in EState
Date
Msg-id CA+HiwqHW6iAePVDWg1DDmMWiV9QCNcAH4Ncdt4k0Z-W6KVNqVg@mail.gmail.com
Whole thread Raw
In response to pgsql: Fix EPQ crash from missing partition directory in EState  (Amit Langote <amitlan@postgresql.org>)
List pgsql-committers
On Thu, Oct 16, 2025 at 2:03 PM Amit Langote <amitlan@postgresql.org> wrote:
> Fix EPQ crash from missing partition directory in EState
>
> EvalPlanQualStart() failed to propagate es_partition_directory into
> the child EState used for EPQ rechecks. When execution time partition
> pruning ran during the EPQ scan, executor code dereferenced a NULL
> partition directory and crashed.
>
> Previously, propagating es_partition_directory into the EPQ EState was
> unnecessary because CreatePartitionPruneState(), which sets it on
> demand, also initialized the exec-pruning context.  After commit
> d47cbf474,

Oops, that could’ve been worded better -- I meant “Prior to d47cbf474”
rather than “Previously”.

--
Thanks, Amit Langote



pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Refactor logical worker synchronization code into a separate fil
Next
From: Nathan Bossart
Date:
Subject: pgsql: Remove partColsUpdated.