On Thu, Oct 16, 2025 at 2:03 PM Amit Langote <[email protected]> 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
